mirror of https://github.com/icedream/npsharp.git
Fix reading loop failout
parent
94a7d20cfc
commit
1abdb83883
|
@ -93,6 +93,11 @@ namespace NPSharp.NP
|
|||
_log.ErrorFormat("Protocol violation: {0}. Disconnect imminent.", error.Message);
|
||||
Disconnect();
|
||||
}
|
||||
catch (Exception error)
|
||||
{
|
||||
_log.ErrorFormat("Loop error in RPC read: {0}", error.ToString());
|
||||
Disconnect();
|
||||
}
|
||||
|
||||
_log.Debug("Now not receiving RPC messages anymore");
|
||||
}, _cancellationToken);
|
||||
|
|
Loading…
Reference in New Issue