Changeset 1323


Ignore:
Timestamp:
05/30/07 10:20:56 (11 years ago)
Author:
bennylp
Message:

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

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/resolver.c

    r1307 r1323  
    364364    } 
    365365 
    366     if (resolver->own_ioqueue && resolver->ioqueue) { 
    367         pj_ioqueue_destroy(resolver->ioqueue); 
    368         resolver->ioqueue = NULL; 
    369     } 
    370  
    371366    if (resolver->udp_key != NULL) { 
    372367        pj_ioqueue_unregister(resolver->udp_key); 
     
    376371        pj_sock_close(resolver->udp_sock); 
    377372        resolver->udp_sock = PJ_INVALID_SOCKET; 
     373    } 
     374 
     375    if (resolver->own_ioqueue && resolver->ioqueue) { 
     376        pj_ioqueue_destroy(resolver->ioqueue); 
     377        resolver->ioqueue = NULL; 
    378378    } 
    379379 
  • pjproject/trunk/pjsip/src/pjsip/sip_endpoint.c

    r1317 r1323  
    578578        mod = prev; 
    579579    } 
     580 
     581    /* Destroy resolver */ 
     582    pjsip_resolver_destroy(endpt->resolver); 
    580583 
    581584    /* Shutdown and destroy all transports. */ 
Note: See TracChangeset for help on using the changeset viewer.