Network/ENetPeer: Fix HasPendingCommands (fixes DisconnectLater)

This commit is contained in:
SirLynix 2024-01-27 16:45:13 +01:00
parent b29ecdf0db
commit 01d3795dae
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ namespace Nz
inline bool ENetPeer::HasPendingCommands()
{
return m_outgoingReliableCommands.empty() && m_outgoingUnreliableCommands.empty() && m_sentReliableCommands.empty() && m_sentUnreliableCommands.empty();
return !m_outgoingReliableCommands.empty() || !m_outgoingUnreliableCommands.empty() || !m_sentReliableCommands.empty();
}
inline bool ENetPeer::IsConnected() const