]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
socket code
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 11 Aug 2006 15:25:49 +0000 (15:25 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 11 Aug 2006 15:25:49 +0000 (15:25 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2257 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_utils.h
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index f59401bd22d4996d4f82916d2e5703617f3c9cdd..31ce8ffee3725e04f7c0799de89d430d22ad7711 100644 (file)
@@ -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
index 9f59a8cf0759d76f5206f669395986464b04123d..a883a8b763c553fc55e553d074b2366adf0ee02e 100644 (file)
@@ -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;
                }