Changeset 4885 for pjproject/trunk/pjsip/src/pjsua2/call.cpp
- Timestamp:
- Aug 12, 2014 12:12:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/call.cpp
r4719 r4885 380 380 Call::~Call() 381 381 { 382 /** 382 /* Remove reference to this instance from PJSUA library */ 383 if (id != PJSUA_INVALID_ID) 384 pjsua_call_set_user_data(id, NULL); 385 386 /* 383 387 * If this instance is deleted, also hangup the corresponding call in 384 388 * PJSUA library. 385 389 */ 386 if (id != PJSUA_INVALID_ID && pjsua_get_state() < PJSUA_STATE_CLOSING) { 387 pjsua_call_set_user_data(id, NULL); 388 if (isActive()) { 389 CallOpParam prm; 390 hangup(prm); 391 } 390 if (pjsua_get_state() < PJSUA_STATE_CLOSING && isActive()) { 391 CallOpParam prm; 392 hangup(prm); 392 393 } 393 394 }
Note: See TracChangeset
for help on using the changeset viewer.