Skip to content

Commit 22557cc

Browse files
committed
allowed failed start service to start again
1 parent aa17cab commit 22557cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SuperSocket.Server/SuperSocketService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public async Task StartAsync(CancellationToken cancellationToken)
440440
{
441441
var state = _state;
442442

443-
if (state != ServerState.None && state != ServerState.Stopped)
443+
if (state != ServerState.None && state != ServerState.Stopped && state != ServerState.Failed)
444444
{
445445
throw new InvalidOperationException($"The server cannot be started right now, because its state is {state}.");
446446
}

0 commit comments

Comments
 (0)