Can only set the KeepClean property before the start

This commit is contained in:
sta 2014-09-30 14:28:59 +09:00
parent aab7ef5a55
commit 6ff6b0485f
3 changed files with 18 additions and 0 deletions

View File

@ -244,6 +244,12 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _state.CheckIfStartable ();
if (msg != null) {
_logger.Error (msg);
return;
}
_services.KeepClean = value; _services.KeepClean = value;
} }
} }

View File

@ -372,6 +372,12 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _state.CheckIfStartable ();
if (msg != null) {
_logger.Error (msg);
return;
}
_services.KeepClean = value; _services.KeepClean = value;
} }
} }

View File

@ -187,6 +187,12 @@ namespace WebSocketSharp.Server
} }
set { set {
var msg = _sessions.State.CheckIfStartable ();
if (msg != null) {
_logger.Error (msg);
return;
}
_sessions.KeepClean = value; _sessions.KeepClean = value;
} }
} }