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:
Michael Jerris 2007-01-22 16:54:30 +00:00
parent 151e400ebe
commit 4a651581d2

View File

@ -949,7 +949,7 @@ int iax_init(char *ip, int preferredportno)
#ifdef WIN32
flags = 1;
if (ioctlsocket(netfd,FIONBIO,(unsigned long *) &flags)) {
_close(netfd);
closesocket(netfd);
netfd = -1;
DEBU(G "Unable to set non-blocking mode.");
IAXERROR "Unable to set non-blocking mode.");