[Modify] Do not overwrite it

This commit is contained in:
sta 2017-02-04 18:01:54 +09:00
parent a376f305c2
commit 731db0f4e9

View File

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