fix: add null check for SSH reconnect timer

This commit is contained in:
Andrew Welker
2023-04-07 10:13:03 -06:00
parent 482afc31d3
commit 70b09fb6b8

View File

@@ -229,7 +229,10 @@ namespace PepperDash.Core
Debug.Console(1, this, "Attempting connect");
// Cancel reconnect if running.
ReconnectTimer.Stop();
if (ReconnectTimer != null)
{
ReconnectTimer.Stop();
}
// Cleanup the old client if it already exists
if (Client != null)