mirror of
https://github.com/islehorse/HISP.git
synced 2025-06-08 12:01:28 +12:00
Improve websocket code.
This commit is contained in:
parent
e74f66a439
commit
b9e3949b14
8 changed files with 186 additions and 79 deletions
|
@ -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));
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue