Working through elusive disconnect bugs on SSH, with Amazon on CP3N

This commit is contained in:
Heath Volmer
2016-12-05 20:33:14 -07:00
parent ad0140b6a3
commit 5abfa9143c
11 changed files with 99 additions and 61 deletions

View File

@@ -26,7 +26,8 @@ namespace PepperDash.Core
/// <summary>
///
/// </summary>
public event GenericSocketStatusChangeEventDelegate SocketStatusChange;
//public event GenericSocketStatusChangeEventDelegate SocketStatusChange;
public event EventHandler<GenericSocketStatusChageEventArgs> ConnectionChange;
/// <summary>
///
@@ -207,10 +208,14 @@ namespace PepperDash.Core
break;
}
// Relay the event
var handler = SocketStatusChange;
var handler = ConnectionChange;
if (handler != null)
SocketStatusChange(this);
ConnectionChange(this, new GenericSocketStatusChageEventArgs(this));
// Relay the event
//var handler = SocketStatusChange;
//if (handler != null)
// SocketStatusChange(this);
}
}