mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-07 00:34:52 +00:00
Removed handler for stream error
This commit is contained in:
@@ -253,7 +253,7 @@ namespace PepperDash.Core
|
||||
//Client.SendKeepAlive();
|
||||
TheStream = Client.CreateShellStream("PDTShell", 100, 80, 100, 200, 65534);
|
||||
TheStream.DataReceived += Stream_DataReceived;
|
||||
TheStream.ErrorOccurred += TheStream_ErrorOccurred;
|
||||
//TheStream.ErrorOccurred += TheStream_ErrorOccurred;
|
||||
Debug.Console(1, this, "Connected");
|
||||
ClientStatus = SocketStatus.SOCKET_STATUS_CONNECTED;
|
||||
//PreviousHostname = Hostname;
|
||||
@@ -346,7 +346,7 @@ namespace PepperDash.Core
|
||||
if (TheStream != null)
|
||||
{
|
||||
TheStream.DataReceived -= Stream_DataReceived;
|
||||
TheStream.ErrorOccurred -= TheStream_ErrorOccurred;
|
||||
//TheStream.ErrorOccurred -= TheStream_ErrorOccurred;
|
||||
TheStream.Close();
|
||||
TheStream.Dispose();
|
||||
TheStream = null;
|
||||
@@ -389,17 +389,17 @@ namespace PepperDash.Core
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Handler for errors on the stream...
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
void TheStream_ErrorOccurred(object sender, ExceptionEventArgs e)
|
||||
{
|
||||
Debug.Console(1, this, "Unhandled SSH STREAM error: {0}", e.Exception);
|
||||
ClientStatus = SocketStatus.SOCKET_STATUS_BROKEN_REMOTELY;
|
||||
HandleConnectionFailure();
|
||||
}
|
||||
///// <summary>
|
||||
///// Handler for errors on the stream...
|
||||
///// </summary>
|
||||
///// <param name="sender"></param>
|
||||
///// <param name="e"></param>
|
||||
//void TheStream_ErrorOccurred(object sender, ExceptionEventArgs e)
|
||||
//{
|
||||
// Debug.Console(1, this, "Unhandled SSH STREAM error: {0}", e.Exception);
|
||||
// ClientStatus = SocketStatus.SOCKET_STATUS_BROKEN_REMOTELY;
|
||||
// HandleConnectionFailure();
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Error event handler for client events - disconnect, etc. Will forward those events via ConnectionChange
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -10,8 +10,8 @@
|
||||
<ArchiveName />
|
||||
</RequiredInfo>
|
||||
<OptionalInfo>
|
||||
<CompiledOn>12/6/2016 3:50:54 PM</CompiledOn>
|
||||
<CompilerRev>1.0.0.28526</CompilerRev>
|
||||
<CompiledOn>12/6/2016 4:09:28 PM</CompiledOn>
|
||||
<CompilerRev>1.0.0.29083</CompilerRev>
|
||||
</OptionalInfo>
|
||||
<Plugin>
|
||||
<Version>Crestron.SIMPLSharp, Version=2.0.48.0, Culture=neutral, PublicKeyToken=812d080f93e2de10</Version>
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
MainAssembly=PepperDash_Core.dll:2fe05eb2518594f4d27bd9ae43dc7a02
|
||||
MainAssembly=PepperDash_Core.dll:987a92dfd5c1b46ff22b2570acef6436
|
||||
MainAssemblyMinFirmwareVersion=1.007.0017
|
||||
MainAssemblyResource=SimplSharpData.dat:315526abf906cded47fb0c7510266a7e
|
||||
ü
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user