Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-28 22:27:45 +0000
committerStijn Buys <ingar@osirion.org>2008-03-28 22:27:45 +0000
commite6841abd64bc73e451fdbf6e8b8b3e73a2fa04ac (patch)
tree861f6336a9e3a4b3ad3bb574c0d2ec31918d0dcb /src/core/netconnection.cc
parent4c060de75eff550989d966747cfc2aabe13dc655 (diff)
more win32 updates
Diffstat (limited to 'src/core/netconnection.cc')
-rw-r--r--src/core/netconnection.cc4
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;