Skip to content

Commit

Permalink
Prevent infinite while loop
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Dec 17, 2024
1 parent 201e01c commit 9fbb408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NexusMods.SingleProcess/CliServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private Task StartTcpListenerAsync()

private async Task StartListeningAsync()
{
while (!_cancellationTokenSource.IsCancellationRequested)
while (_started && !_cancellationTokenSource.IsCancellationRequested)
{
try
{
Expand Down

0 comments on commit 9fbb408

Please sign in to comment.