mirror of
https://github.com/wiz0u/WTelegramClient.git
synced 2026-04-06 06:53:47 +00:00
Prevent "You must connect to Telegram first" during network loss
(closes #157)
This commit is contained in:
parent
131fd36106
commit
d1e583cc86
4 changed files with 14 additions and 7 deletions
|
|
@ -198,7 +198,7 @@ namespace WTelegram
|
|||
_reactorTask?.Wait(1000);
|
||||
}
|
||||
catch { }
|
||||
_reactorTask = null;
|
||||
_reactorTask = resetSessions ? null : Task.CompletedTask;
|
||||
_networkStream?.Close();
|
||||
_tcpClient?.Dispose();
|
||||
#if OBFUSCATION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue