Skip to content

Commit 12e3907

Browse files
alextsitsfalkTX
authored andcommitted
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 <alex.tsitsimpis@gmail.com>
1 parent 0642494 commit 12e3907

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cadence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ def slot_JackServerStart(self):
16671667

16681668
@pyqtSlot()
16691669
def slot_JackServerStop(self):
1670-
if gDBus.a2j:
1670+
if gDBus.a2j and bool(gDBus.a2j.is_started()):
16711671
gDBus.a2j.stop()
16721672
try:
16731673
gDBus.jack.StopServer()

0 commit comments

Comments
 (0)