Changeset 3882
- Timestamp:
- Nov 2, 2011 8:48:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_core.c
r3873 r3882 1292 1292 int i; /* Must be signed */ 1293 1293 1294 PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags)); 1295 1294 1296 /* Signal threads to quit: */ 1295 1297 pjsua_var.thread_quit_flag = 1; … … 1298 1300 for (i=0; i<(int)pjsua_var.ua_cfg.thread_cnt; ++i) { 1299 1301 if (pjsua_var.thread[i]) { 1300 pj_thread_join(pjsua_var.thread[i]); 1302 pj_status_t status; 1303 status = pj_thread_join(pjsua_var.thread[i]); 1304 if (status != PJ_SUCCESS) { 1305 PJ_PERROR(4,(THIS_FILE, status, "Error joining worker thread")); 1306 pj_thread_sleep(1000); 1307 } 1301 1308 pj_thread_destroy(pjsua_var.thread[i]); 1302 1309 pjsua_var.thread[i] = NULL; … … 1306 1313 if (pjsua_var.endpt) { 1307 1314 unsigned max_wait; 1308 1309 PJ_LOG(4,(THIS_FILE, "Shutting down, flags=%d...", flags));1310 1315 1311 1316 /* Terminate all calls. */
Note: See TracChangeset
for help on using the changeset viewer.