mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-03 15:29:58 +01:00
minor stylish changes
This commit is contained in:
parent
5778366b29
commit
afd6d06252
|
|
@ -16,9 +16,9 @@ namespace TLSharp.Core.Network
|
|||
private NetworkStream stream;
|
||||
private int sendCounter = 0;
|
||||
TcpClientConnectionHandler handler;
|
||||
string address;
|
||||
int port;
|
||||
IPAddress ipAddress;
|
||||
readonly string address;
|
||||
readonly int port;
|
||||
readonly IPAddress ipAddress;
|
||||
|
||||
public TcpTransport(string address, int port, TcpClientConnectionHandler handler = null)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -81,8 +81,6 @@ namespace TLSharp.Core
|
|||
session = Session.TryLoadOrCreateNew(store, sessionUserId);
|
||||
await transport.Connect();
|
||||
}
|
||||
if (!transport.IsConnected)
|
||||
throw new Exception("Connection to Telegram failed");
|
||||
|
||||
if (session.AuthKey == null || reconnect)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue