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)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6840 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
44c1cb72ff
commit
523c0bd845
|
@ -354,9 +354,11 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
|
|||
{
|
||||
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 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
|
|||
goto done;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
len = sizeof(i);
|
||||
switch_socket_opt_set(new_sock, SWITCH_SO_NONBLOCK, TRUE);
|
||||
|
||||
|
@ -410,7 +413,8 @@ SWITCH_DECLARE(switch_status_t) switch_rtp_set_local_address(switch_rtp_t *rtp_s
|
|||
*err = "Send myself a packet failed!";
|
||||
goto done;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
old_sock = rtp_session->sock;
|
||||
rtp_session->sock = new_sock;
|
||||
new_sock = NULL;
|
||||
|
|
Loading…
Reference in New Issue