[Modify] Add it
This commit is contained in:
parent
2c92cec6af
commit
f3fc23478e
@ -364,6 +364,23 @@ namespace WebSocketSharp.Server
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private bool canSet (out string message)
|
||||||
|
{
|
||||||
|
message = null;
|
||||||
|
|
||||||
|
if (_state == ServerState.Start) {
|
||||||
|
message = "The service has already started.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_state == ServerState.ShuttingDown) {
|
||||||
|
message = "The service is shutting down.";
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
private static string createID ()
|
private static string createID ()
|
||||||
{
|
{
|
||||||
return Guid.NewGuid ().ToString ("N");
|
return Guid.NewGuid ().ToString ("N");
|
||||||
|
Loading…
Reference in New Issue
Block a user