diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-12-22 21:25:20 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-12-22 21:25:20 +0000 |
commit | 509fac53b3ebc5030c6bbff27ecf1c37907fb7ee (patch) | |
tree | d3919c87b939be7665eff9ec67f40e7b90dd9eb9 /lib/server | |
parent | 0b509d458b2ef3c5c525b7e5e2e66352285c7d91 (diff) |
Don't use close() to close a Winsock socket.
We should always use closesocket() instead, which the Close() method already
does, so just call it instead.
Diffstat (limited to 'lib/server')
-rw-r--r-- | lib/server/SocketListen.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/server/SocketListen.h b/lib/server/SocketListen.h index 2ddd9edd..39fe7e24 100644 --- a/lib/server/SocketListen.h +++ b/lib/server/SocketListen.h @@ -186,8 +186,7 @@ public: catch(ServerException &e) // finally { // Dispose of the socket - ::close(mSocketHandle); - mSocketHandle = -1; + Close(); throw; } } |