forked from Mirrors/freeswitch
use closesocket on sockets.. not close
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4015 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
151e400ebe
commit
4a651581d2
@ -949,7 +949,7 @@ int iax_init(char *ip, int preferredportno)
|
|||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
flags = 1;
|
flags = 1;
|
||||||
if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
|
if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
|
||||||
_close(netfd);
|
closesocket(netfd);
|
||||||
netfd = -1;
|
netfd = -1;
|
||||||
DEBU(G "Unable to set non-blocking mode.");
|
DEBU(G "Unable to set non-blocking mode.");
|
||||||
IAXERROR "Unable to set non-blocking mode.");
|
IAXERROR "Unable to set non-blocking mode.");
|
||||||
|
Loading…
Reference in New Issue
Block a user