summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Patchage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Patchage.cpp b/src/Patchage.cpp
index 22c52fb..4be7753 100644
--- a/src/Patchage.cpp
+++ b/src/Patchage.cpp
@@ -339,8 +339,10 @@ Patchage::idle_callback()
if (_refresh) {
refresh();
} else if (_driver_detached) {
+#if defined(USE_LIBJACK) || defined(HAVE_JACK_DBUS)
if (_jack_driver && !_jack_driver->is_attached())
_jack_driver->destroy_all();
+#endif
#ifdef HAVE_ALSA
if (_alsa_driver && !_alsa_driver->is_attached())
_alsa_driver->destroy_all();