Changeset 1795


Ignore:
Timestamp:
Feb 14, 2008 2:20:38 PM (16 years ago)
Author:
bennylp
Message:

More ticket #469: fix in ioqueue to handle case when key has been unregistered when recvfrom() is called

File:
1 edited

Legend:

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

    r1789 r1795  
    642642    PJ_CHECK_STACK(); 
    643643 
     644    /* Check if key is closing (need to do this first before accessing 
     645     * other variables, since they might have been destroyed. See ticket 
     646     * #469). 
     647     */ 
     648    if (IS_CLOSING(key)) 
     649        return PJ_ECANCELLED; 
     650 
    644651    read_op = (struct read_operation*)op_key; 
    645652    read_op->op = PJ_IOQUEUE_OP_NONE; 
    646  
    647     /* Check if key is closing. */ 
    648     if (IS_CLOSING(key)) 
    649         return PJ_ECANCELLED; 
    650653 
    651654    /* Try to see if there's data immediately available.  
Note: See TracChangeset for help on using the changeset viewer.