2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-12-18 01:40:24 +00:00
This commit is contained in:
2021-05-14 18:24:34 +03:00
parent 0af14009be
commit 5bf258673d
48 changed files with 1032 additions and 383 deletions

View File

@@ -118,6 +118,7 @@ namespace Esiur.Net.Sockets
public void Send(byte[] message)
{
lock (sendLock)
{
if (held)
@@ -131,9 +132,8 @@ namespace Esiur.Net.Sockets
pkt_send.Message = message;
if (pkt_send.Compose())
sock.Send(pkt_send.Data);
sock?.Send(pkt_send.Data);
}
}
@@ -229,8 +229,6 @@ namespace Esiur.Net.Sockets
if (pkt_send.Compose())
sock.Send(pkt_send.Data);
}
}