Skip to content

Commit

Permalink
fix: Fix incorrectly checking if parent pid has been passed into Serv…
Browse files Browse the repository at this point in the history
…erMode
  • Loading branch information
normj committed Oct 13, 2021
1 parent 6281946 commit bdf2e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AWS.Deploy.CLI/Commands/ServerModeCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public ServerModeCommand(IToolInteractiveService interactiveService, int port, i

var host = builder.Build();

if (_parentPid.HasValue && _parentPid.Value != 0)
if (_parentPid.GetValueOrDefault() == 0)
{
await host.RunAsync(cancellationToken);
}
Expand Down

0 comments on commit bdf2e94

Please sign in to comment.