mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-04 22:18:59 +00:00
IsConnected now includes a check on sender==null.
Otherwise callls to this method always return True and if(!TelegramClient.IsConnected) TelegramClient.ConnectAsync() wouldn't have the expected result.
This commit is contained in:
parent
08f3b08277
commit
e8ba470357
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ namespace TLSharp.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
if (transport == null)
|
||||
if (transport == null || sender == null)
|
||||
return false;
|
||||
return transport.IsConnected;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue