]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
move opts up
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jan 2007 15:52:23 +0000 (15:52 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 5 Jan 2007 15:52:23 +0000 (15:52 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3911 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_woomera/mod_woomera.c

index e1b289eccb1f01a0fc57bf6202509b537402e6fd..f10783a3de00d6d40a93dd1438ddfff4f0487355 100644 (file)
@@ -809,6 +809,9 @@ static int connect_woomera(switch_socket_t **new_sock, woomera_profile * profile
                return -1;
        }
 
+    switch_socket_timeout_set((*new_sock), 10000000);
+    switch_socket_opt_set((*new_sock), SWITCH_SO_KEEPALIVE, 1);
+
        /*
           status = switch_socket_bind((*new_sock), sa);
           if (0 && status != SWITCH_STATUS_SUCCESS) {
@@ -820,8 +823,6 @@ static int connect_woomera(switch_socket_t **new_sock, woomera_profile * profile
                return -1;
        }
 
-    switch_socket_timeout_set((*new_sock), 10000000);
-    switch_socket_opt_set((*new_sock), SWITCH_SO_KEEPALIVE, 1);
 
        return 1;
 }