From 9aba52781cd2900a22b2bae0725bdcc10c57dc95 Mon Sep 17 00:00:00 2001 From: Mateusz Karlowski Date: Thu, 5 Mar 2026 13:15:53 +0100 Subject: [PATCH] Increase the waiting time for session --- sargraph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sargraph.py b/sargraph.py index 71058a0..e60dcb8 100755 --- a/sargraph.py +++ b/sargraph.py @@ -87,7 +87,7 @@ if args.command[0] == "start": ) # Spinloop to see whether the subprocess even starts - if spinloop(lambda: file_exists(socket_path), 0.1, 5): + if spinloop(lambda: file_exists(socket_path), 0.1, 10): print(f"Session '{args.session}' started") sys.exit(0) @@ -103,7 +103,7 @@ elif args.command[0] == "stop": send(args.session, f"command:q:{args.command[1]}") # Spinloop to see whether the subprocess even dies - if spinloop(lambda: not file_exists(socket_path), 0.5, 5): + if spinloop(lambda: not file_exists(socket_path), 0.5, 10): print(f"Session '{args.session}' killed") sys.exit(0)