Author: mikej Date: Mon Dec 17 13:24:26 2007 New Revision: 6840 Modified: freeswitch/trunk/src/switch_rtp.c Log: don't perform send packet to ourselves test on windows (it seems to fail a lot, and there is no reason to do that test on windows anyways) (FSCORE-73) Modified: freeswitch/trunk/src/switch_rtp.c ============================================================================== --- freeswitch/trunk/src/switch_rtp.c (original) +++ freeswitch/trunk/src/switch_rtp.c Mon Dec 17 13:24:26 2007 @@ -354,9 +354,11 @@ { switch_socket_t *new_sock = NULL, *old_sock = NULL; switch_status_t status = SWITCH_STATUS_FALSE; +#ifndef WIN32 char o[5] = "TEST", i[5] = ""; switch_size_t len, ilen = 0; int x; +#endif *err = NULL; @@ -384,6 +386,7 @@ goto done; } +#ifndef WIN32 len = sizeof(i); switch_socket_opt_set(new_sock, SWITCH_SO_NONBLOCK, TRUE); @@ -410,7 +413,8 @@ *err = "Send myself a packet failed!"; goto done; } - +#endif + old_sock = rtp_session->sock; rtp_session->sock = new_sock; new_sock = NULL;