1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Remove invalid assertion

This commit is contained in:
Ivan Savenko 2024-02-19 00:36:21 +02:00
parent fc252bb9eb
commit fe918de2df

View File

@ -832,10 +832,7 @@ void CServerHandler::onPacketReceived(const std::shared_ptr<INetworkConnection>
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
if(getState() == EClientState::DISCONNECTING)
{
assert(0); //Should not be possible - socket must be closed at this point
return;
}
CPack * pack = logicConnection->retrievePack(message);
ServerHandlerCPackVisitor visitor(*this);