Browse Source

Return in case of exception

Ruben 4 months ago
parent
commit
69e4f98edf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/PicView.Avalonia/Navigation/IPC.cs

+ 1 - 0
src/PicView.Avalonia/Navigation/IPC.cs

@@ -127,6 +127,7 @@ internal static class IPC
             catch (Exception ex)
             {
                 DebugHelper.LogDebug(nameof(IPC), nameof(StartListeningForArguments), ex);
+                return;
             }
         }
         while (true); // Continuously listen for incoming connections