Network/ENetPeer: Fix HasPendingCommands (fixes DisconnectLater)
This commit is contained in:
parent
b29ecdf0db
commit
01d3795dae
|
|
@ -89,7 +89,7 @@ namespace Nz
|
||||||
|
|
||||||
inline bool ENetPeer::HasPendingCommands()
|
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
|
inline bool ENetPeer::IsConnected() const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue