mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 22:13:07 +01:00
* Fix #14587: Send queued packets before disconnecting the client * Log better information during network authentication
This commit is contained in:
@@ -155,6 +155,16 @@ void NetworkConnection::QueuePacket(NetworkPacket&& packet, bool front)
|
||||
}
|
||||
}
|
||||
|
||||
void NetworkConnection::Disconnect()
|
||||
{
|
||||
ShouldDisconnect = true;
|
||||
}
|
||||
|
||||
bool NetworkConnection::IsValid() const
|
||||
{
|
||||
return !ShouldDisconnect && Socket->GetStatus() == SocketStatus::Connected;
|
||||
}
|
||||
|
||||
void NetworkConnection::SendQueuedPackets()
|
||||
{
|
||||
while (!_outboundPackets.empty() && SendPacket(_outboundPackets.front()))
|
||||
|
||||
Reference in New Issue
Block a user