boost timer: total_seconds instead of just seconds. Fixed bug where an invalid hand object was accessed. Only set action to "fold" for leaving players if they are active and are not fold.
This commit is contained in:
1 parent
322dc3460b
commit
7345630c0d
6 files changed
+27
-27
No files matched your search
@@ -310,7 +310,7 @@ ClientStateConnecting::Process(ClientThread &client)
|
||||
}
|
||||
else if (selectResult == 0) // timeout
|
||||
{
|
||||
if (m_connectTimer.elapsed().seconds() >= CLIENT_CONNECT_TIMEOUT_SEC)
|
||||
if (m_connectTimer.elapsed().total_seconds() >= CLIENT_CONNECT_TIMEOUT_SEC)
|
||||
throw ClientException(ERR_SOCK_CONNECT_TIMEOUT, 0);
|
||||
else
|
||||
retVal = MSG_SOCK_INTERNAL_PENDING;
|
||||
|
||||
Reference in new issue
Block a user