From 01d3795dae891b0af38bf133c3c2c327cc062f3c Mon Sep 17 00:00:00 2001 From: SirLynix Date: Sat, 27 Jan 2024 16:45:13 +0100 Subject: [PATCH] Network/ENetPeer: Fix HasPendingCommands (fixes DisconnectLater) --- include/Nazara/Network/ENetPeer.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Network/ENetPeer.inl b/include/Nazara/Network/ENetPeer.inl index e6d254422..f925c6126 100644 --- a/include/Nazara/Network/ENetPeer.inl +++ b/include/Nazara/Network/ENetPeer.inl @@ -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