Changeset 1794 for pjproject/trunk


Ignore:
Timestamp:
Feb 14, 2008 2:14:57 PM (17 years ago)
Author:
bennylp
Message:

More ticket #469: bail out from on_rx_rtp/rtcp loop if recvfrom returns PJ_ECANCELLED. This errno is returned when the key is mark as closing, which could happen when user closes the key inside the callback

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r1790 r1794  
    521521            bytes_read = -status; 
    522522 
    523     } while (status != PJ_EPENDING); 
     523    } while (status != PJ_EPENDING && status != PJ_ECANCELLED); 
    524524} 
    525525 
     
    575575            bytes_read = -status; 
    576576 
    577     } while (status != PJ_EPENDING); 
     577    } while (status != PJ_EPENDING && status != PJ_ECANCELLED); 
    578578} 
    579579 
Note: See TracChangeset for help on using the changeset viewer.