mirror of https://github.com/icedream/npsharp.git
Return null on Read() if the connection is closed. I'm too lazy to fix this better for "freshly-closed" connections now.
parent
df9c59a19e
commit
79c2e91d79
|
@ -149,7 +149,7 @@ namespace NPSharp.RPC
|
|||
public TRecv Read()
|
||||
{
|
||||
if (_sock == null)
|
||||
throw new InvalidOperationException("You need to open the stream first.");
|
||||
return null;
|
||||
|
||||
var message = RPCMessage.Deserialize<TRecv>(_sock);
|
||||
|
||||
|
|
Loading…
Reference in New Issue