mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-08 01:04:47 +00:00
Adds null check in WaitAndTryReconnect()
This commit is contained in:
@@ -317,11 +317,16 @@ namespace PepperDash.Core
|
||||
/// </summary>
|
||||
void WaitAndTryReconnect()
|
||||
{
|
||||
if (Client != null)
|
||||
{
|
||||
Debug.Console(1, "Attempting reconnect, status={0}", Client.ClientStatus);
|
||||
}
|
||||
|
||||
DisconnectClient();
|
||||
|
||||
Debug.Console(1, "Attempting reconnect, status={0}", Client.ClientStatus);
|
||||
if(!DisconnectCalledByUser)
|
||||
if (!DisconnectCalledByUser)
|
||||
RetryTimer = new CTimer(o => { Client.ConnectToServerAsync(ConnectToServerCallback); }, AutoReconnectIntervalMs);
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user