Changeset 5795
- Timestamp:
- May 23, 2018 1:33:00 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c
r5788 r5795 3761 3761 { 3762 3762 pjsua_call *call; 3763 unsigned num_locks = 0; 3763 3764 3764 3765 pj_log_push_indent(); … … 3895 3896 } 3896 3897 3898 /* Release locks before calling callbacks, to avoid deadlock. */ 3899 while (PJSUA_LOCK_IS_LOCKED()) { 3900 num_locks++; 3901 PJSUA_UNLOCK(); 3902 } 3903 3897 3904 /* Ticket #1627: Invoke on_call_tsx_state() when call is disconnected. */ 3898 3905 if (inv->state == PJSIP_INV_STATE_DISCONNECTED && … … 3907 3914 if (pjsua_var.ua_cfg.cb.on_call_state) 3908 3915 (*pjsua_var.ua_cfg.cb.on_call_state)(call->index, e); 3916 3917 /* Re-acquire the locks. */ 3918 for (;num_locks > 0; num_locks--) 3919 PJSUA_LOCK(); 3909 3920 3910 3921 /* call->inv may be NULL now */
Note: See TracChangeset
for help on using the changeset viewer.