Module: sems Branch: rco/offer_answer Commit: db12409adf6c5c86293824ba7124189ddccf29c5 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=db12409adf6c5c86293824ba7124189ddccf29c5
Author: Raphael Coeffic <[email protected]> Committer: Raphael Coeffic <[email protected]> Date: Fri Apr 15 17:06:48 2011 +0200 return error instead of assert(0). --- core/sip/trans_layer.cpp | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/sip/trans_layer.cpp b/core/sip/trans_layer.cpp index a125c20..e1a01f3 100644 --- a/core/sip/trans_layer.cpp +++ b/core/sip/trans_layer.cpp @@ -952,8 +952,9 @@ int _trans_layer::cancel(trans_ticket* tt) break; default: - assert(0); - break; + bucket->unlock(); + ERROR("Trying to cancel a request while in unknown state\n"); + return -1; } cstring cancel_str("CANCEL"); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
