@ -909,12 +909,23 @@ namespace WebSocketSharp.Server
}
try {
var threw = false;
stopReceiving (5000);
catch {
threw = true;
throw;
finally {
_services.Stop (code, reason);
if (!threw)
_state = ServerState.Stop;