diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index f59401bd22..31ce8ffee3 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -61,6 +61,8 @@ BEGIN_EXTERN_C !strcasecmp(expr, "true") ||\ atoi(expr))) ? SWITCH_TRUE : SWITCH_FALSE +#define SWITCH_STATUS_IS_BREAK(x) (x || SWITCH_STATUS_BREAK || x == 730035 || x == 35) + /*! \brief Return a printable name of a switch_priority_t \param priority the priority to get the name of diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index 9f59a8cf07..a883a8b763 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -244,7 +244,7 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event, mlen = 1; status = switch_socket_recv(listener->sock, ptr, &mlen); - if (status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_SUCCESS && status != 730035) { + if (status != SWITCH_STATUS_BREAK && status != SWITCH_STATUS_SUCCESS) { return status; }