Changeset 2881


Ignore:
Timestamp:
Aug 15, 2009 9:53:58 AM (15 years ago)
Author:
bennylp
Message:

More ticket #924: removed assertion in detach() since SRTP transport calls this function with NULL argument (in transport_srtp.c:792)

File:
1 edited

Legend:

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

    r2845 r2881  
    257257            break; 
    258258    } 
    259     PJ_ASSERT_ON_FAIL(i != loop->user_cnt, return); 
    260259 
    261260    /* Remove this user */ 
    262     pj_array_erase(loop->users, sizeof(loop->users[0]), 
    263                    loop->user_cnt, i); 
    264     --loop->user_cnt; 
     261    if (i != loop->user_cnt) { 
     262        pj_array_erase(loop->users, sizeof(loop->users[0]), 
     263                       loop->user_cnt, i); 
     264        --loop->user_cnt; 
     265    } 
    265266} 
    266267 
Note: See TracChangeset for help on using the changeset viewer.