minor stylish changes

This commit is contained in:
solarin 2020-04-09 12:30:10 +04:00
parent 5778366b29
commit afd6d06252
2 changed files with 3 additions and 5 deletions

View file

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

View file

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