summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNanang Izzuddin <nanang@teluu.com>2016-02-04 09:31:01 +0000
committerNanang Izzuddin <nanang@teluu.com>2016-02-04 09:31:01 +0000
commit09977f8551064c5972ea5d23605bfd4adb886189 (patch)
tree1478251d91e9e34440ed4ea66eea2c1d6336384f
parent56f6e91963bbd507c300e4f2a806a8db2935566d (diff)
Misc (re #1882): Added exception catch in Call destructor.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5240 74dad513-b988-da41-8d7b-12977e46ad98
-rw-r--r--pjsip/src/pjsua2/call.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/pjsip/src/pjsua2/call.cpp b/pjsip/src/pjsua2/call.cpp
index ab6fdda7..2d88990a 100644
--- a/pjsip/src/pjsua2/call.cpp
+++ b/pjsip/src/pjsua2/call.cpp
@@ -390,8 +390,13 @@ Call::~Call()
* PJSUA library.
*/
if (pjsua_get_state() < PJSUA_STATE_CLOSING && isActive()) {
- CallOpParam prm;
- hangup(prm);
+ try {
+ CallOpParam prm;
+ hangup(prm);
+ } catch (Error &err) {
+ // Ignore
+ PJ_UNUSED_ARG(err);
+ }
}
}