summaryrefslogtreecommitdiffstats
path: root/source/cBlockingTCPLink.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 17:13:49 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-02-02 17:13:49 +0100
commitdca87cd2145d51ffca4212c2ab47a44c20c2ad26 (patch)
tree459c94748d4cb94bfa0ad948eb1d8783b9a747b5 /source/cBlockingTCPLink.cpp
parentWebServer: socket fix (force-terminated socket would cause the server to loop indefinitely) (diff)
downloadcuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar.gz
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar.bz2
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar.lz
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar.xz
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.tar.zst
cuberite-dca87cd2145d51ffca4212c2ab47a44c20c2ad26.zip
Diffstat (limited to '')
-rw-r--r--source/cBlockingTCPLink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cBlockingTCPLink.cpp b/source/cBlockingTCPLink.cpp
index 9705f3a84..1145e0e56 100644
--- a/source/cBlockingTCPLink.cpp
+++ b/source/cBlockingTCPLink.cpp
@@ -35,7 +35,7 @@ cBlockingTCPLink::~cBlockingTCPLink()
void cBlockingTCPLink::CloseSocket()
{
- if (m_Socket.IsValid())
+ if (!m_Socket.IsValid())
{
m_Socket.CloseSocket();
}