mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-04-14 05:01:58 -04:00
Fix #2143888 [calibre-debug --shutdown-running-calibre returns error code](https://bugs.launchpad.net/calibre/+bug/2143888)
This commit is contained in:
parent
dc399ac961
commit
d91b7645bd
@ -468,7 +468,8 @@ def send_message(msg):
|
||||
time.sleep(0.05)
|
||||
with SingleInstance(singleinstance_name) as si:
|
||||
if si:
|
||||
raise SystemExit(_('Other instance of calibre shutdown'))
|
||||
print(_('Other instance of calibre shutdown'), file=sys.stderr)
|
||||
raise SystemExit(0)
|
||||
|
||||
print(_('Failed to contact running instance of calibre'), file=sys.stderr, flush=True)
|
||||
print(fail_err, file=sys.stderr, flush=True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user