#define CALLBACK_TIMEOUT_10S 10 * 1000 /**< 10 sec = 10 * 1000 * 1ms */
#define CALLBACK_TIMEOUT_5S 5 * 1000 /**< 5sec = 5 * 1000 * 1ms */
-#define TIMEOUT_USED
+//#define TIMEOUT_USED
#define DEBUG_UUID
/* '_' for separaing from the same constant variable in srmresourcestrings.c */
ma_service *service = (ma_service *)con->userdata;
ma_check_null_ret("service", service);
- if (!con) {
- MA_LOGI("container is null");
- return;
- }
-
if (con->tid) {
g_source_remove(con->tid);
con->tid = 0;
return G_SOURCE_REMOVE;
}
- OCPDMCleanupForTimeout();
+ if (MA_DISC_MOWNED_DEVS < con->cid) {
+ OCPDMCleanupForTimeout();
+ }
switch (con->cid) {
case MA_DISC_MOT_ENB_DEVS:
break;
}
- _request_cleanup((gpointer)con);
+ _request_cleanup(con);
return G_SOURCE_REMOVE;
}
__notify_found_devs(con);
DISC_MOT_ENB_DEVS_END:
+
_request_cleanup(con);
+
g_thread_exit(GINT_TO_POINTER (1));
return NULL;