Various minor fixes to networking

This commit is contained in:
Wojtek Figat
2023-02-10 12:00:04 +01:00
parent c785a17ca8
commit a099bd25f6
3 changed files with 18 additions and 0 deletions

View File

@@ -164,6 +164,7 @@ void ENetDriver::Disconnect(const NetworkConnection& connection)
bool ENetDriver::PopEvent(NetworkEvent* eventPtr)
{
ASSERT(_host);
ENetEvent event;
const int result = enet_host_service(_host, &event, 0);
if (result < 0)