From 9ab2c45e5aa40d7846548aab109836d3d071c8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 5 May 2023 12:50:26 +0200 Subject: [PATCH] Start RPC thread instead of running it The start method execute the target in another thread when run execute the target in the current thread. Closes #12257 --- tryton/tryton/common/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/tryton/common/common.py b/tryton/tryton/common/common.py index 17bcd4a4f8..9526135f6c 100644 --- a/tryton/tryton/common/common.py +++ b/tryton/tryton/common/common.py @@ -1225,7 +1225,7 @@ class RPCProgress(object): # otherwise the cursor is not updated. self.parent = get_toplevel_window() self._cursor_timeout = GLib.timeout_add(3000, self._set_cursor) - Thread(target=self.start).run() + Thread(target=self.start).start() return else: self.start()