mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-12-18 01:40:24 +00:00
1.6.1
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user