Dispose of underlying streams when disconnected

Fixes last two failing tests.
This commit is contained in:
Andrew Arnott 2016-06-30 21:56:39 -06:00
Родитель 118e22760f
Коммит 246e813195
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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();
}
}