diff --git a/include/dap_client.h b/include/dap_client.h index bad823d001dcded6802cc7a91401427b5351d997..8b8206914716b6b9c5559c5c8df0ab71bf946997 100755 --- a/include/dap_client.h +++ b/include/dap_client.h @@ -84,6 +84,7 @@ typedef void (*dap_client_callback_data_size_t) (dap_client_t *, void *, size_t) #define DAP_UPLINK_PATH_STREAM_CTL "stream_ctl" //"091348758013553" #define DAP_UPLINK_PATH_STREAM "stream" //"874751843144" #define DAP_UPLINK_PATH_LICENSE "license" +//#define DAP_UPLINK_PATH_NODE_LIST "nodelist" #define DAP_UPLINK_PATH_SERVER_LIST "slist" #ifdef __cplusplus diff --git a/src/dap_client_pvt.c b/src/dap_client_pvt.c index cd2ec98be96c7170ece9a49f1c8d4529bbcd3ce2..961e60bfb1705e8f75701da59e7b9b37f106306d 100644 --- a/src/dap_client_pvt.c +++ b/src/dap_client_pvt.c @@ -382,7 +382,6 @@ static void s_stage_status_after(dap_client_pvt_t * a_client_pvt) case STAGE_STATUS_DONE: { log_it(L_INFO, "Stage status %s is done", dap_client_stage_str(a_client_pvt->stage)); - bool l_is_last_stage = (a_client_pvt->stage == a_client_pvt->stage_target); if(a_client_pvt->stage_status_done_callback) { a_client_pvt->stage_status_done_callback(a_client_pvt->client, NULL); // Expecting that its one-shot callback @@ -390,6 +389,7 @@ static void s_stage_status_after(dap_client_pvt_t * a_client_pvt) } else log_it(L_WARNING, "Stage done callback is not present"); + bool l_is_last_stage = (a_client_pvt->stage == a_client_pvt->stage_target); if(l_is_last_stage) { log_it(L_NOTICE, "Stage %s is achieved", dap_client_stage_str(a_client_pvt->stage)); @@ -398,8 +398,9 @@ static void s_stage_status_after(dap_client_pvt_t * a_client_pvt) // Expecting that its one-shot callback a_client_pvt->stage_target_done_callback = NULL; } - } else - log_it(L_ERROR, "!! dap_CLIENT_STAGE_STATUS_DONE but not l_is_last_stage !!"); + } else{ + log_it(L_ERROR, "!! dap_CLIENT_STAGE_STATUS_DONE but not l_is_last_stage (cur stage=%d, target=%d)!!",a_client_pvt->stage, a_client_pvt->stage_target); + } } break; default: