0
0
mirror of https://github.com/bec-project/bec_widgets.git synced 2025-07-14 03:31:50 +02:00

fix: removed apparently unnecessary sleep while waiting for an rpc response

This commit is contained in:
2024-05-15 14:14:25 +02:00
parent ab4f1acd75
commit 7d64cac661

View File

@ -302,7 +302,6 @@ class RPCBase:
MessageEndpoints.gui_instruction_response(request_id)
)
QCoreApplication.processEvents() # keep UI responsive (and execute signals/slots)
time.sleep(0.1)
if response is None and (time.time() - start_time) >= timeout:
raise RPCResponseTimeoutError(request_id, timeout)