mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-08 00:37:15 +01:00
Update Net.hpp
This commit is contained in:
parent
1a11dd777e
commit
11c17189b3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user