You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static DWORD WINAPI WebSocketThread(LPVOID)
{
using namespace std::chrono_literals;
// this can happen when code becomes stale and we need to re-establish connection again
int curRetry = 0;
while (curRetry < MAX_RETRIES) {
std::this_thread::sleep_for(500ms);
// connection successful or stop signal received after retry
if (ConnectToSocket() || bStopWebSocketThread) {
return 0;
}
}
return 0;
}
should add curRetry++
The text was updated successfully, but these errors were encountered:
should add
curRetry++
The text was updated successfully, but these errors were encountered: