Dispose of underlying streams when disconnected
Fixes last two failing tests.
This commit is contained in:
Родитель
118e22760f
Коммит
246e813195
|
@ -213,6 +213,7 @@ namespace StreamJsonRpc
|
|||
// Dispose the stream and cancel pending requests in the finally block
|
||||
// So this is executed even if Disconnected event handler throws.
|
||||
this.disposeCts.Cancel();
|
||||
this.messageHandler.Dispose();
|
||||
this.CancelPendingRequests();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче