13
0

do not attempt to call an empty/null boost functor in clear_events()

This commit is contained in:
Paul Davis 2015-02-05 18:02:57 -05:00
parent 7ffc06b08d
commit 78e245d0b5

View File

@ -197,8 +197,10 @@ SessionEventManager::merge_event (SessionEvent* ev)
case SessionEvent::Clear:
_clear_event_type (ev->type);
/* run any additional realtime callback */
ev->rt_slot ();
/* run any additional realtime callback, if any */
if (ev->rt_slot) {
ev->rt_slot ();
}
if (ev->event_loop) {
/* run non-realtime callback (in some other thread) */
ev->event_loop->call_slot (MISSING_INVALIDATOR, boost::bind (ev->rt_return, ev));