minor fix

This commit is contained in:
solarin 2020-04-09 16:52:48 +04:00
parent f697dac02c
commit bc87d0aea7

View file

@ -49,11 +49,12 @@ namespace TLSharp.Core.Network
else
tcpClient = handler(address, port);
sendCounter = 0;
if (tcpClient.Connected)
{
stream = tcpClient.GetStream();
}
sendCounter = 0;
}
public async Task Send(byte[] packet, CancellationToken token = default(CancellationToken))