[Modify] Do not overwrite it
This commit is contained in:
parent
a376f305c2
commit
731db0f4e9
@ -909,12 +909,23 @@ namespace WebSocketSharp.Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
var threw = false;
|
||||||
try {
|
try {
|
||||||
stopReceiving (5000);
|
stopReceiving (5000);
|
||||||
}
|
}
|
||||||
|
catch {
|
||||||
|
threw = true;
|
||||||
|
throw;
|
||||||
|
}
|
||||||
finally {
|
finally {
|
||||||
|
try {
|
||||||
_services.Stop (code, reason);
|
_services.Stop (code, reason);
|
||||||
}
|
}
|
||||||
|
catch {
|
||||||
|
if (!threw)
|
||||||
|
throw;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
_state = ServerState.Stop;
|
_state = ServerState.Stop;
|
||||||
|
Loading…
Reference in New Issue
Block a user