Ignore:
Timestamp:
Jun 25, 2015 8:53:02 AM (9 years ago)
Author:
ming
Message:

Fixed #1862: Crash on iOS when destroying an activesock and creating a new one at the same time

Thanks to Itay Bianco for the report.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/activesock.c

    r5044 r5119  
    300300    asock->shutdown = SHUT_RX | SHUT_TX; 
    301301    if (asock->key) { 
     302        pj_ioqueue_unregister(asock->key); 
     303 
    302304#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \ 
    303305    PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0 
    304306        activesock_destroy_iphone_os_stream(asock); 
    305307#endif   
    306          
    307         pj_ioqueue_unregister(asock->key); 
     308 
    308309        asock->key = NULL; 
    309310    } 
Note: See TracChangeset for help on using the changeset viewer.