mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-16 05:04:48 +00:00
Revert "Feature/ssh dispose"
This commit is contained in:
@@ -298,7 +298,6 @@ namespace PepperDash.Core
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Disconnect()
|
public void Disconnect()
|
||||||
{
|
{
|
||||||
Debug.Console(2, "Disconnect Called");
|
|
||||||
ConnectEnabled = false;
|
ConnectEnabled = false;
|
||||||
// Stop trying reconnects, if we are
|
// Stop trying reconnects, if we are
|
||||||
if (ReconnectTimer != null)
|
if (ReconnectTimer != null)
|
||||||
@@ -316,13 +315,11 @@ namespace PepperDash.Core
|
|||||||
private void KillClient(SocketStatus status)
|
private void KillClient(SocketStatus status)
|
||||||
{
|
{
|
||||||
KillStream();
|
KillStream();
|
||||||
IsConnecting = false;
|
|
||||||
if (Client != null)
|
if (Client != null)
|
||||||
{
|
{
|
||||||
Client.ErrorOccurred -= Client_ErrorOccurred;
|
IsConnecting = false;
|
||||||
Client.Disconnect();
|
Client.Disconnect();
|
||||||
Client.Dispose();
|
|
||||||
|
|
||||||
Client = null;
|
Client = null;
|
||||||
ClientStatus = status;
|
ClientStatus = status;
|
||||||
Debug.Console(1, this, "Disconnected");
|
Debug.Console(1, this, "Disconnected");
|
||||||
|
|||||||
Reference in New Issue
Block a user