From a9e8eca08696c58a10f06858b7988abc81199335 Mon Sep 17 00:00:00 2001 From: MaxXor Date: Thu, 27 Aug 2015 20:59:03 +0200 Subject: [PATCH] Small fix --- Client/Core/Networking/Client.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/Core/Networking/Client.cs b/Client/Core/Networking/Client.cs index 17729e60..398bcb31 100644 --- a/Client/Core/Networking/Client.cs +++ b/Client/Core/Networking/Client.cs @@ -317,7 +317,7 @@ private void AsyncReceive(IAsyncResult result) if (bytesTransferred <= 0) { - OnClientState(false); + Disconnect(); return; } } @@ -331,7 +331,7 @@ private void AsyncReceive(IAsyncResult result) } catch (Exception) { - OnClientState(false); + Disconnect(); return; }