Changeset 1324


Ignore:
Timestamp:
May 30, 2007 3:30:20 PM (12 years ago)
Author:
bennylp
Message:

Fixed ticket #312: PJSIP resolver is not destroyed on shutdown (thanks Martin Peterzon)

Location:
pjproject/branches/pjproject-0.5-stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/pjproject-0.5-stable/pjlib-util/src/pjlib-util/resolver.c

    r1308 r1324  
    363363    } 
    364364 
    365     if (resolver->own_ioqueue && resolver->ioqueue) { 
    366         pj_ioqueue_destroy(resolver->ioqueue); 
    367         resolver->ioqueue = NULL; 
    368     } 
    369  
    370365    if (resolver->udp_key != NULL) { 
    371366        pj_ioqueue_unregister(resolver->udp_key); 
     
    375370        pj_sock_close(resolver->udp_sock); 
    376371        resolver->udp_sock = PJ_INVALID_SOCKET; 
     372    } 
     373 
     374    if (resolver->own_ioqueue && resolver->ioqueue) { 
     375        pj_ioqueue_destroy(resolver->ioqueue); 
     376        resolver->ioqueue = NULL; 
    377377    } 
    378378 
  • pjproject/branches/pjproject-0.5-stable/pjsip/src/pjsip/sip_endpoint.c

    r1018 r1324  
    577577        mod = prev; 
    578578    } 
     579 
     580    /* Destroy resolver */ 
     581    pjsip_resolver_destroy(endpt->resolver); 
    579582 
    580583    /* Shutdown and destroy all transports. */ 
Note: See TracChangeset for help on using the changeset viewer.