From c1f0a2eea2e9df4607e0be9b8b7cd4167da4976c Mon Sep 17 00:00:00 2001 From: Alex Tsitsimpis Date: Sun, 17 Nov 2019 20:21:07 +0200 Subject: [PATCH] Ensure a2j is started before attempting to stop it When stopping jackd, ensure that a2j is actually started before attempting to stop it. Otherwise we get an error and jackd is not stopped. Signed-off-by: Alex Tsitsimpis --- src/cadence.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cadence.py b/src/cadence.py index 44369ce..708dd4b 100755 --- a/src/cadence.py +++ b/src/cadence.py @@ -1667,7 +1667,7 @@ class CadenceMainW(QMainWindow, ui_cadence.Ui_CadenceMainW): @pyqtSlot() def slot_JackServerStop(self): - if gDBus.a2j: + if gDBus.a2j and bool(gDBus.a2j.is_started()): gDBus.a2j.stop() try: gDBus.jack.StopServer()