From 867cf2b459f8e2f5bf4a148538add2a95ad55ca8 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Thu, 23 Sep 2021 20:54:35 +0200 Subject: [PATCH] Fix a problem in the X11 runloop --- plugins/vst/X11RunLoop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/vst/X11RunLoop.cpp b/plugins/vst/X11RunLoop.cpp index 04725c5a..2d8ded27 100644 --- a/plugins/vst/X11RunLoop.cpp +++ b/plugins/vst/X11RunLoop.cpp @@ -187,7 +187,7 @@ bool RunLoop::unregisterEventHandler(X11::IEventHandler* handler) return false; Impl::EventHandler *eh = impl->eventHandlers[index].get(); - if (!impl->runLoop->unregisterEventHandler(eh)) + if (impl->runLoop->unregisterEventHandler(eh) != Steinberg::kResultTrue) return false; eh->alive = false; @@ -219,7 +219,7 @@ bool RunLoop::unregisterTimer(X11::ITimerHandler* handler) return false; Impl::TimerHandler *th = impl->timerHandlers[index].get(); - if (!impl->runLoop->unregisterTimer(th)) + if (impl->runLoop->unregisterTimer(th) != Steinberg::kResultTrue) return false; th->alive = false;