From 2f4577b0df3664c7cbd1bb3fa81c3d141c0fba5a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Dec 2010 20:51:52 +0000 Subject: Fix crash when resetting dropouts after JACK dies (fix ticket #513). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@2686 a436a847-0d15-0410-975c-d299462d15a1 --- src/JackDriver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/JackDriver.cpp b/src/JackDriver.cpp index e16ee3f..0ebdb98 100644 --- a/src/JackDriver.cpp +++ b/src/JackDriver.cpp @@ -607,6 +607,7 @@ JackDriver::get_max_dsp_load() void JackDriver::reset_max_dsp_load() { - jack_reset_max_delayed_usecs(_client); + if (_client) + jack_reset_max_delayed_usecs(_client); } -- cgit v1.2.1