Ignore:
Timestamp:
Feb 10, 2006 2:04:05 PM (19 years ago)
Author:
bennylp
Message:

Added more logging, and fixed bug when ACK is responded!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua/pjsua_core.c

    r173 r175  
    487487    status = init_sockets(); 
    488488    if (status != PJ_SUCCESS) { 
    489         pj_caching_pool_destroy(&pjsua.cp); 
    490489        pjsua_perror("init_sockets() has returned error", status); 
    491490        return status; 
     
    621620                pj_thread_destroy(pjsua.threads[i]); 
    622621            } 
    623             pj_caching_pool_destroy(&pjsua.cp); 
    624622            return status; 
    625623        } 
     
    666664    pjsua.quit_flag = 1; 
    667665 
    668     /* Destroy sound framework: */ 
     666    /* Destroy sound framework:  
     667     * (this should be done in pjmedia_shutdown()) 
     668     */ 
    669669    pj_snd_deinit(); 
    670670 
     
    673673    for (i=0; i<pjsua.thread_cnt; ++i) { 
    674674         
    675         pj_thread_join(pjsua.threads[i]); 
    676         pj_thread_destroy(pjsua.threads[i]); 
     675        if (pjsua.threads[i]) { 
     676            pj_thread_join(pjsua.threads[i]); 
     677            pj_thread_destroy(pjsua.threads[i]); 
     678            pjsua.threads[i] = NULL; 
     679        } 
    677680    } 
    678681 
Note: See TracChangeset for help on using the changeset viewer.