mirror of
https://github.com/sochix/TLSharp.git
synced 2025-12-06 08:02:00 +01:00
minor fix
This commit is contained in:
parent
f697dac02c
commit
bc87d0aea7
|
|
@ -49,11 +49,12 @@ namespace TLSharp.Core.Network
|
||||||
else
|
else
|
||||||
tcpClient = handler(address, port);
|
tcpClient = handler(address, port);
|
||||||
|
|
||||||
|
sendCounter = 0;
|
||||||
|
|
||||||
if (tcpClient.Connected)
|
if (tcpClient.Connected)
|
||||||
{
|
{
|
||||||
stream = tcpClient.GetStream();
|
stream = tcpClient.GetStream();
|
||||||
}
|
}
|
||||||
sendCounter = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task Send(byte[] packet, CancellationToken token = default(CancellationToken))
|
public async Task Send(byte[] packet, CancellationToken token = default(CancellationToken))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue