[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,11 +909,22 @@ namespace WebSocketSharp.Server
} }
try { try {
var threw = false;
try { try {
stopReceiving (5000); stopReceiving (5000);
} }
catch {
threw = true;
throw;
}
finally { finally {
_services.Stop (code, reason); try {
_services.Stop (code, reason);
}
catch {
if (!threw)
throw;
}
} }
} }
finally { finally {