mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-01-07 09:10:02 +01:00
clean dispose of TlsStream
This commit is contained in:
parent
d6d656c8fe
commit
83b4e8a4e7
|
|
@ -176,6 +176,7 @@ namespace WTelegram
|
|||
_cts?.Cancel();
|
||||
_sendSemaphore = new(0);
|
||||
_reactorTask = null;
|
||||
_networkStream?.Close();
|
||||
_tcpClient?.Dispose();
|
||||
#if OBFUSCATION
|
||||
_sendCtr?.Dispose();
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@ namespace WTelegram
|
|||
public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException();
|
||||
public override void SetLength(long value) => throw new NotSupportedException();
|
||||
public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException();
|
||||
protected override void Dispose(bool disposing) => _innerStream.Dispose();
|
||||
|
||||
public override async Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken ct)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue