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;