X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Ftimer.cc;h=3f1afea069d7a4f36e1c2694f8b68ae50dc72e90;hb=d0b55be2c7afb5b25b42804c9eab4995e64dff52;hp=bde95f89593821f1b79b3a88bbf967f2f017e8ef;hpb=b0a532db8adeb909fa2cd8e518ca6917a2d7df0a;p=chaz%2Fopenbox diff --git a/otk/timer.cc b/otk/timer.cc index bde95f89..3f1afea0 100644 --- a/otk/timer.cc +++ b/otk/timer.cc @@ -77,15 +77,11 @@ void OBTimer::start(void) void OBTimer::stop(void) { - timing = false; + if (timing) { + timing = false; - manager->removeTimer(this); -} - - -void OBTimer::halt(void) -{ - timing = false; + manager->removeTimer(this); + } }