1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 22:23:51 +00:00

[Broser] Break while loop if connection was closed

This commit is contained in:
Koncord 2017-05-19 22:04:38 +08:00
parent d3bf4ec577
commit 50c839d425

View file

@ -93,6 +93,10 @@ MASTER_PACKETS QueryClient::GetAnswer()
data.Read(pid); data.Read(pid);
switch(pid) switch(pid)
{ {
case ID_DISCONNECTION_NOTIFICATION:
case ID_CONNECTION_LOST:
update = false;
break;
case ID_MASTER_QUERY: case ID_MASTER_QUERY:
pmq->Read(); pmq->Read();
update = false; update = false;