[Modify] Polish it
This commit is contained in:
parent
835fdaeacb
commit
f11a8c30c2
@ -822,8 +822,10 @@ namespace WebSocketSharp.Server
|
||||
{
|
||||
while (true) {
|
||||
TcpClient cl = null;
|
||||
|
||||
try {
|
||||
cl = _listener.AcceptTcpClient ();
|
||||
|
||||
ThreadPool.QueueUserWorkItem (
|
||||
state => {
|
||||
try {
|
||||
@ -845,6 +847,7 @@ namespace WebSocketSharp.Server
|
||||
catch (SocketException ex) {
|
||||
if (_state == ServerState.ShuttingDown) {
|
||||
_log.Info ("The underlying listener is stopped.");
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user