2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

Added getter

This commit is contained in:
2019-12-31 19:01:24 +03:00
parent 4174c141b7
commit f9bbd603ce
3 changed files with 44 additions and 14 deletions

View File

@ -778,12 +778,23 @@ namespace Esyur.Net.IIP
this.Socket.Hold();
while (offset < ends)
{
offset = processPacket(msg, offset, ends, data, chunkId);
}
this.Socket.Unhold();
try
{
while (offset < ends)
{
offset = processPacket(msg, offset, ends, data, chunkId);
}
}
catch (Exception ex)
{
Console.WriteLine(ex);
Console.Beep();
}
finally
{
this.Socket.Unhold();
}
}
/// <summary>

View File

@ -445,8 +445,19 @@ namespace Esyur.Net.Sockets
public void Unhold()
{
DataSent(null);
held = false;
try
{
DataSent(null);
}
catch (Exception ex)
{
Console.WriteLine(ex);
Console.Beep();
}
finally
{
held = false;
}
}
}
}