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
This commit is contained in:
Cédric Krier
2023-05-05 12:50:26 +02:00
parent 8d1fd00a23
commit 9ab2c45e5a
+1 -1
View File
@@ -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()