do not try to remove invalid events
This commit is contained in:
@@ -248,6 +248,10 @@ SimulatorPrivate::Now (void) const
|
||||
void
|
||||
SimulatorPrivate::Remove (EventId ev)
|
||||
{
|
||||
if (IsExpired (ev))
|
||||
{
|
||||
return;
|
||||
}
|
||||
Scheduler::EventKey key;
|
||||
EventImpl *impl = m_events->Remove (ev, &key);
|
||||
delete impl;
|
||||
|
||||
Reference in New Issue
Block a user