Browse Source

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>
pull/262/head
Alex Tsitsimpis 5 years ago
parent
commit
c1f0a2eea2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/cadence.py

+ 1
- 1
src/cadence.py View File

@@ -1667,7 +1667,7 @@ class CadenceMainW(QMainWindow, ui_cadence.Ui_CadenceMainW):


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


Loading…
Cancel
Save