mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
Implementing IsConnected
This commit is contained in:
parent
3acc6950ed
commit
85fefb2d4e
|
|
@ -377,8 +377,15 @@ namespace TLSharp.Core
|
|||
_session.SessionExpires = int.MaxValue;
|
||||
|
||||
_session.Save();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public bool IsConnected()
|
||||
{
|
||||
if (this._transport == null)
|
||||
return false;
|
||||
return this._transport.IsConnected;
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_transport != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue