reset one shot timer internal state instead of leaving it thinking that it's still running (mdified patch 1730597)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -159,6 +159,11 @@ void wxTimerScheduler::NotifyExpired()
|
||||
wxUnixTimerImpl * const timer = s->m_timer;
|
||||
if ( timer->IsOneShot() )
|
||||
{
|
||||
// the timer needs to be stopped but don't call its Stop() from
|
||||
// here as it would attempt to remove the timer from our list and
|
||||
// we had already done it, so we just need to reset its state
|
||||
timer->MarkStopped();
|
||||
|
||||
// don't need it any more
|
||||
delete s;
|
||||
}
|
||||
|
Reference in New Issue
Block a user