summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/res_pjsip_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c
index f33732512..53cd8c823 100644
--- a/res/res_pjsip_session.c
+++ b/res/res_pjsip_session.c
@@ -2039,9 +2039,9 @@ static int add_sdp_streams(void *obj, void *arg, void *data, int flags)
int res;
if (handler) {
- /* if an already assigned handler does not handle the session_media or reports a catastrophic error, fail */
+ /* if an already assigned handler reports a catastrophic error, fail */
res = handler->create_outgoing_sdp_stream(session, session_media, answer);
- if (res <= 0) {
+ if (res < 0) {
return 0;
}
return CMP_MATCH;