From 50c839d425cad90d05e22caab0b616061b92519d Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 19 May 2017 22:04:38 +0800 Subject: [PATCH] [Broser] Break while loop if connection was closed --- apps/browser/netutils/QueryClient.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/browser/netutils/QueryClient.cpp b/apps/browser/netutils/QueryClient.cpp index 39db4a1cb..416d2d661 100644 --- a/apps/browser/netutils/QueryClient.cpp +++ b/apps/browser/netutils/QueryClient.cpp @@ -93,6 +93,10 @@ MASTER_PACKETS QueryClient::GetAnswer() data.Read(pid); switch(pid) { + case ID_DISCONNECTION_NOTIFICATION: + case ID_CONNECTION_LOST: + update = false; + break; case ID_MASTER_QUERY: pmq->Read(); update = false;