mirror of
https://github.com/sochix/TLSharp.git
synced 2026-04-06 06:55:06 +00:00
Implementing IsConnected
This commit is contained in:
parent
3acc6950ed
commit
85fefb2d4e
1 changed files with 9 additions and 2 deletions
|
|
@ -379,6 +379,13 @@ namespace TLSharp.Core
|
|||
_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