]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
windows needs sockets too
authorMichael Jerris <mike@jerris.com>
Wed, 28 Apr 2010 22:34:57 +0000 (18:34 -0400)
committerMichael Jerris <mike@jerris.com>
Wed, 28 Apr 2010 22:35:15 +0000 (18:35 -0400)
src/switch_rtp.c

index b8b5185745ce9cbbf92e95e586d968114b1ab757..137b7999ed82b7301da847cf11658a0780726206 100644 (file)
@@ -955,15 +955,12 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
        }
        switch_socket_opt_set(new_sock, SWITCH_SO_NONBLOCK, FALSE);
 
+#endif
 
        old_sock = rtp_session->sock_input;
        rtp_session->sock_input = new_sock;
        new_sock = NULL;
 
-
-#endif
-
-
        if (switch_test_flag(rtp_session, SWITCH_RTP_FLAG_USE_TIMER) || switch_test_flag(rtp_session, SWITCH_RTP_FLAG_NOBLOCK)) {
                switch_socket_opt_set(rtp_session->sock_input, SWITCH_SO_NONBLOCK, TRUE);
                switch_set_flag_locked(rtp_session, SWITCH_RTP_FLAG_NOBLOCK);