From 11c17189b325189dd6123cee62b55d40ea2f35e6 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Sun, 5 Sep 2021 13:40:21 +0300 Subject: [PATCH] Update Net.hpp --- module/PocoLib/Net.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/PocoLib/Net.hpp b/module/PocoLib/Net.hpp index 6952bd48..d8f8c370 100644 --- a/module/PocoLib/Net.hpp +++ b/module/PocoLib/Net.hpp @@ -110,6 +110,7 @@ struct WsClient try { mState = mWebSocket.receiveFrame(mBuffer, mFlags); } catch (const Poco::TimeoutException &) { + mState = mFlags = 0; // Make sure these don't indicate otherwise return LightObj{}; // We handle timeout so we can be non blocking } // If something was returned @@ -139,6 +140,7 @@ struct WsClient try { mState = mWebSocket.receiveFrame(mBuffer, mFlags); } catch (const Poco::TimeoutException &) { + mState = mFlags = 0; // Make sure these don't indicate otherwise return LightObj{}; // We handle timeout so we can be non blocking } // If something was returned