diff options
author | Stijn Buys <ingar@osirion.org> | 2008-03-28 22:27:45 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-03-28 22:27:45 +0000 |
commit | e6841abd64bc73e451fdbf6e8b8b3e73a2fa04ac (patch) | |
tree | 861f6336a9e3a4b3ad3bb574c0d2ec31918d0dcb /src/core/netconnection.cc | |
parent | 4c060de75eff550989d966747cfc2aabe13dc655 (diff) |
more win32 updates
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r-- | src/core/netconnection.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/netconnection.cc b/src/core/netconnection.cc index 18ae3bc..9fd4e33 100644 --- a/src/core/netconnection.cc +++ b/src/core/netconnection.cc @@ -96,7 +96,11 @@ void NetConnection::disconnect() transmit(); FD_ZERO(&clientset); +#ifdef _WIN32 + closesocket(connection_fd); +#else close(connection_fd); +#endif } connection_fd = -1; |