mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
do not attempt to call an empty/null boost functor in clear_events()
This commit is contained in:
parent
03b8f59a88
commit
a0482157a7
1 changed files with 4 additions and 2 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue