Changeset 4001 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
- Timestamp:
- Mar 30, 2012 7:53:36 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_core.c
r3938 r4001 1361 1361 int i; /* Must be signed */ 1362 1362 1363 if (pjsua_var.endpt) { 1364 PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags)); 1365 } 1366 1363 1367 if (pjsua_var.state > PJSUA_STATE_NULL && 1364 1368 pjsua_var.state < PJSUA_STATE_CLOSING) … … 1373 1377 for (i=0; i<(int)pjsua_var.ua_cfg.thread_cnt; ++i) { 1374 1378 if (pjsua_var.thread[i]) { 1375 pj_thread_join(pjsua_var.thread[i]); 1379 pj_status_t status; 1380 status = pj_thread_join(pjsua_var.thread[i]); 1381 if (status != PJ_SUCCESS) { 1382 PJ_PERROR(4,(THIS_FILE, status, "Error joining worker thread")); 1383 pj_thread_sleep(1000); 1384 } 1376 1385 pj_thread_destroy(pjsua_var.thread[i]); 1377 1386 pjsua_var.thread[i] = NULL; … … 1381 1390 if (pjsua_var.endpt) { 1382 1391 unsigned max_wait; 1383 1384 PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags));1385 1392 1386 1393 pj_log_push_indent();
Note: See TracChangeset
for help on using the changeset viewer.