mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01: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
|
|
@ -436,7 +436,7 @@ namespace TLSharp.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
if (transport == null)
|
||||
if (transport == null || sender == null)
|
||||
return false;
|
||||
return transport.IsConnected;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue