mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 10:03:20 +00:00
Try to reconnect on socket err
This commit is contained in:
parent
ad2c805308
commit
7424dfbd46
1 changed files with 5 additions and 0 deletions
|
@ -324,6 +324,11 @@ void OnSocketError(Socket socket, int errorType, int errorNumber, int attempt) {
|
|||
g_socket.SetArg(attempt + 1);
|
||||
CreateTimer(nextAttempt, Timer_Reconnect);
|
||||
}
|
||||
if(authState == Auth_PendingResponse) {
|
||||
Debug("Got socket error on auth?, retry");
|
||||
g_socket.SetArg(attempt + 1);
|
||||
ConnectSocket(false, attempt);
|
||||
}
|
||||
}
|
||||
|
||||
bool SendFullSync() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue