Ignore:
Timestamp:
Jan 23, 2017 4:32:34 AM (7 years ago)
Author:
nanang
Message:

Re #1900: Reintegrated works in UWP branch to trunk.

Location:
pjproject/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk

  • pjproject/trunk/pjmedia/src/pjmedia/transport_udp.c

    r4538 r5539  
    753753 
    754754    if (udp->attached) { 
     755        int i; 
     756 
    755757        /* Lock the ioqueue keys to make sure that callbacks are 
    756758         * not executed. See ticket #460 for details. 
     
    772774        udp->rtcp_cb = NULL; 
    773775        udp->user_data = NULL; 
     776 
     777        /* Cancel any outstanding send */ 
     778        for (i=0; i<PJ_ARRAY_SIZE(udp->rtp_pending_write); ++i) { 
     779            pj_ioqueue_post_completion(udp->rtp_key, 
     780                                       &udp->rtp_pending_write[i].op_key, 0); 
     781        } 
     782        pj_ioqueue_post_completion(udp->rtcp_key, &udp->rtcp_write_op, 0); 
    774783 
    775784        /* Unlock keys */ 
Note: See TracChangeset for help on using the changeset viewer.