From bfd526ad7cd48cfe4b12d95160e30dd8b14b15f6 Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Wed, 18 Oct 2023 21:52:45 -0500 Subject: [PATCH] Small IPC fixes --- src/app.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/app.py b/src/app.py index f79e9fa..6621415 100644 --- a/src/app.py +++ b/src/app.py @@ -22,10 +22,7 @@ class Application(IPCServer): super(Application, self).__init__() if not settings_manager.is_trace_debug(): - try: - self.create_ipc_listener() - except Exception: - self.socket_realization_check() + self.socket_realization_check() if not self.is_ipc_alive: for arg in unknownargs + [args.new_tab,]: @@ -36,13 +33,19 @@ class Application(IPCServer): raise AppLaunchException(f"{app_name} IPC Server Exists: Will send path(s) to it and close...") self.setup_debug_hook() - Window(args, unknownargs) def socket_realization_check(self): - self.send_test_ipc_message() - self.create_ipc_listener() + try: + self.create_ipc_listener() + except Exception: + self.send_test_ipc_message() + + try: + self.create_ipc_listener() + except Exception as e: + ... def setup_debug_hook(self): try: