mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
parent
1697db9d7f
commit
c5187ae12b
|
|
@ -84,8 +84,17 @@ namespace TLSharp.Core.Network
|
|||
}
|
||||
|
||||
return new TcpMessage(seq, body);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public bool IsConnected
|
||||
{
|
||||
get
|
||||
{
|
||||
return this._tcpClient.Connected;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_tcpClient.Connected)
|
||||
|
|
|
|||
|
|
@ -377,8 +377,18 @@ namespace TLSharp.Core
|
|||
_session.SessionExpires = int.MaxValue;
|
||||
|
||||
_session.Save();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public bool IsConnected
|
||||
{
|
||||
get
|
||||
{
|
||||
if (_transport == null)
|
||||
return false;
|
||||
return _transport.IsConnected;
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_transport != null)
|
||||
|
|
|
|||
Loading…
Reference in a new issue