We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa17cab commit 22557ccCopy full SHA for 22557cc
src/SuperSocket.Server/SuperSocketService.cs
@@ -440,7 +440,7 @@ public async Task StartAsync(CancellationToken cancellationToken)
440
{
441
var state = _state;
442
443
- if (state != ServerState.None && state != ServerState.Stopped)
+ if (state != ServerState.None && state != ServerState.Stopped && state != ServerState.Failed)
444
445
throw new InvalidOperationException($"The server cannot be started right now, because its state is {state}.");
446
}
0 commit comments