summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network/network_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_server.cpp b/src/network/network_server.cpp
index 463db6855..fc5325e06 100644
--- a/src/network/network_server.cpp
+++ b/src/network/network_server.cpp
@@ -275,7 +275,7 @@ NetworkRecvStatus ServerNetworkGameSocketHandler::CloseConnection(NetworkRecvSta
/* We can't go over the MAX_CLIENTS limit here. However, the
* pool must have place for all clients and ourself. */
assert_compile(NetworkClientSocketPool::MAX_SIZE == MAX_CLIENTS + 1);
- assert(ServerNetworkGameSocketHandler::CanAllocateItem());
+ assert(!accept || ServerNetworkGameSocketHandler::CanAllocateItem());
return accept;
}