mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-05 14:35:43 +00:00
clean dispose of TlsStream
This commit is contained in:
parent
d6d656c8fe
commit
83b4e8a4e7
2 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue