mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 12:06:29 +00:00
fix: add null check for SSH reconnect timer
This commit is contained in:
parent
482afc31d3
commit
70b09fb6b8
1 changed files with 4 additions and 1 deletions
|
|
@ -229,7 +229,10 @@ namespace PepperDash.Core
|
||||||
Debug.Console(1, this, "Attempting connect");
|
Debug.Console(1, this, "Attempting connect");
|
||||||
|
|
||||||
// Cancel reconnect if running.
|
// Cancel reconnect if running.
|
||||||
ReconnectTimer.Stop();
|
if (ReconnectTimer != null)
|
||||||
|
{
|
||||||
|
ReconnectTimer.Stop();
|
||||||
|
}
|
||||||
|
|
||||||
// Cleanup the old client if it already exists
|
// Cleanup the old client if it already exists
|
||||||
if (Client != null)
|
if (Client != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue