From 7ccdd37a7180ea72517528024b317c9a1c66c7f6 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 11 Aug 2006 15:25:49 +0000 Subject: [PATCH] socket code git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/include/switch_utils.h | 2 ++ src/mod/event_handlers/mod_event_socket/mod_event_socket.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; }