Changeset 5690


Ignore:
Timestamp:
Nov 10, 2017 3:21:52 AM (7 years ago)
Author:
ming
Message:

Fixed #2061: Unable to destroy certain PJSIP transports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r5682 r5690  
    975975                                    int key_len) 
    976976{ 
    977     return (pj_hash_get(tpmgr->table, key, key_len, NULL) == (void*)tp); 
     977    transport *tp_iter; 
     978 
     979    if (pj_hash_get(tpmgr->table, key, key_len, NULL) == (void*)tp) { 
     980        return PJ_TRUE; 
     981    } 
     982 
     983    tp_iter = tpmgr->tp_list.next; 
     984    while (tp_iter != &tpmgr->tp_list) { 
     985        if (tp_iter->tp == tp) { 
     986            return PJ_TRUE; 
     987        } 
     988        tp_iter = tp_iter->next; 
     989    } 
     990 
     991    return PJ_FALSE; 
    978992} 
    979993 
Note: See TracChangeset for help on using the changeset viewer.