mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-28 23:47:09 +01:00
Update Net.hpp
This commit is contained in:
1 parent
1a11dd777e
commit
11c17189b3
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user