mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Retry sending message after a sleep
Avoids spurious errors on multiple simultaneous calibre launches. Fixes #1927546 ["ERROR: Contacting calibre failed"](https://bugs.launchpad.net/calibre/+bug/1927546)
This commit is contained in:
parent
dc88a74caa
commit
88ba140db9
@ -445,6 +445,10 @@ singleinstance_name = 'GUI'
|
||||
|
||||
|
||||
def send_message(msg):
|
||||
try:
|
||||
send_message_in_process(msg)
|
||||
except Exception:
|
||||
time.sleep(2)
|
||||
try:
|
||||
send_message_in_process(msg)
|
||||
except Exception as err:
|
||||
|
Loading…
x
Reference in New Issue
Block a user