SammygoodTunes / Tile-Game

A tile-based multiplayer game with procedural terrain generation (using the Perlin Noise algorithm)
MIT License
1 stars 0 forks source link

Fix client not disconnecting from closed server #6

Open SammygoodTunes opened 2 months ago

SammygoodTunes commented 2 months ago

Occasionally when a server host closes the server, the connected clients don't get disconnected. This is because of a socket recv that awaits for a packet but never receives anything, causing the client to remain connected.