|
|
|
|
@ -189,28 +189,6 @@ namespace WebSocketSharp.Server
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Private Methods
|
|
|
|
|
|
|
|
|
|
private bool canSet (out string message)
|
|
|
|
|
{
|
|
|
|
|
message = null;
|
|
|
|
|
|
|
|
|
|
var state = _sessions.State;
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Internal Methods
|
|
|
|
|
|
|
|
|
|
internal void Start ()
|
|
|
|
|
|