Skip to content

Commit

Permalink
allowed failed start service to start again
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Oct 26, 2024
1 parent aa17cab commit 22557cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SuperSocket.Server/SuperSocketService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public async Task StartAsync(CancellationToken cancellationToken)
{
var state = _state;

if (state != ServerState.None && state != ServerState.Stopped)
if (state != ServerState.None && state != ServerState.Stopped && state != ServerState.Failed)
{
throw new InvalidOperationException($"The server cannot be started right now, because its state is {state}.");
}
Expand Down

0 comments on commit 22557cc

Please sign in to comment.