Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
alextsits authored and falkTX committed Nov 17, 2019
1 parent 0642494 commit 12e3907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cadence.py
Expand Up @@ -1667,7 +1667,7 @@ def slot_JackServerStart(self):

@pyqtSlot()
def slot_JackServerStop(self):
if gDBus.a2j:
if gDBus.a2j and bool(gDBus.a2j.is_started()):
gDBus.a2j.stop()
try:
gDBus.jack.StopServer()
Expand Down

0 comments on commit 12e3907

Please sign in to comment.