mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-05 06:26:44 +00:00
Implementing IsConnected
This commit is contained in:
parent
fa2c389956
commit
750d0e4791
1 changed files with 9 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue