Added the internal Ext.CheckIfCanStart (ServerState) method

This commit is contained in:
sta
2015-08-12 17:24:53 +09:00
parent 7bd0fb87f2
commit 46eae139e2
3 changed files with 9 additions and 2 deletions

View File

@@ -892,7 +892,7 @@ namespace WebSocketSharp.Server
public void Start ()
{
lock (_sync) {
var msg = _state.CheckIfStartable () ?? checkIfCertificateExists ();
var msg = _state.CheckIfCanStart () ?? checkIfCertificateExists ();
if (msg != null) {
_logger.Error (msg);
return;

View File

@@ -795,7 +795,7 @@ namespace WebSocketSharp.Server
public void Start ()
{
lock (_sync) {
var msg = _state.CheckIfStartable () ?? checkIfCertificateExists ();
var msg = _state.CheckIfCanStart () ?? checkIfCertificateExists ();
if (msg != null) {
_logger.Error (msg);
return;