Improve websocket code.

This commit is contained in:
Li 2022-11-17 02:52:30 +13:00
parent e74f66a439
commit b9e3949b14
8 changed files with 186 additions and 79 deletions

View file

@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;
using System.Net.Sockets;
using System.Threading;
namespace HISP.Server.Network
{
@ -43,6 +43,8 @@ namespace HISP.Server.Network
else
break;
Thread.Sleep(1000 * 3);
} while (!socket.ReceiveAsync(e));
}