From dd042910a9a5ea678bdc66f34007800151ce3a0e Mon Sep 17 00:00:00 2001 From: furtest Date: Fri, 23 Jan 2026 17:33:41 +0100 Subject: [PATCH] synchroniser : update_links : use run instead of Popen using Popen causes the command to return before making the connection so the closing of the master connection (in runners) happens before we had time to log into the server forcing us to complete an extra login step. --- src/unisync/synchroniser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unisync/synchroniser.py b/src/unisync/synchroniser.py index e75ec46..0f17503 100644 --- a/src/unisync/synchroniser.py +++ b/src/unisync/synchroniser.py @@ -270,7 +270,7 @@ class Synchroniser: link_background_wrapper ] - link_update_process = subprocess.Popen(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + link_update_process = subprocess.run(command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) if not background: print("Starting links update.")