[Modify] Polish it
This commit is contained in:
parent
ca78024530
commit
f3b930f6a6
@ -942,15 +942,7 @@ namespace WebSocketSharp.Server
|
|||||||
|
|
||||||
private void stopReceiving (int millisecondsTimeout)
|
private void stopReceiving (int millisecondsTimeout)
|
||||||
{
|
{
|
||||||
try {
|
_listener.Stop ();
|
||||||
_listener.Stop ();
|
|
||||||
}
|
|
||||||
catch (Exception ex) {
|
|
||||||
var msg = "The underlying listener has failed to stop.";
|
|
||||||
|
|
||||||
throw new InvalidOperationException (msg, ex);
|
|
||||||
}
|
|
||||||
|
|
||||||
_receiveThread.Join (millisecondsTimeout);
|
_receiveThread.Join (millisecondsTimeout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user