Fix a problem in the X11 runloop
This commit is contained in:
parent
7552e5e8b8
commit
867cf2b459
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue