Implementing IsConnected

This commit is contained in:
salar2k 2017-03-02 09:52:12 +03:30 committed by salarcode
parent 3acc6950ed
commit 85fefb2d4e

View file

@ -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)