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