do not try to remove invalid events

This commit is contained in:
Mathieu Lacage
2007-07-18 17:55:58 +02:00
parent 2ad239b6c9
commit 9c46074145

View File

@@ -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;