[Modify] Replace it
This commit is contained in:
parent
eb13c2ff1c
commit
8753ceb72e
@ -821,9 +821,14 @@ namespace WebSocketSharp.Server
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Stop ()
|
public void Stop ()
|
||||||
{
|
{
|
||||||
|
string msg;
|
||||||
|
if (!checkIfAvailable (false, true, false, false, out msg)) {
|
||||||
|
_logger.Error (msg);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
lock (_sync) {
|
lock (_sync) {
|
||||||
var msg = _state.CheckIfAvailable (false, true, false);
|
if (!checkIfAvailable (false, true, false, false, out msg)) {
|
||||||
if (msg != null) {
|
|
||||||
_logger.Error (msg);
|
_logger.Error (msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user