Browse code

core: events - return once SREV_SIP_REPLY_OUT callbacks are executed

Daniel-Constantin Mierla authored on 08/09/2020 11:08:01
Showing 1 changed files
... ...
@@ -343,6 +343,7 @@ int sr_event_exec(int type, sr_event_param_t *evp)
343 343
 							&& _sr_events_list.sip_reply_out[i]; i++) {
344 344
 						ret |= _sr_events_list.sip_reply_out[i](evp);
345 345
 					}
346
+					return ret;
346 347
 				} else return 1;
347 348
 		case SREV_TCP_WS_CLOSE:
348 349
 				if(unlikely(_sr_events_list.tcp_ws_close[0]!=0))