summaryrefslogtreecommitdiff
path: root/include/timer.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 19:15:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-09 19:15:30 +0000
commitd569a50e74b431008d00740723e7189004d01fca (patch)
treedb73136823d8cfd4d69161732a1ad256a456743b /include/timer.h
parent65dedc3bc18cc2b8c5b56052c6400129e3df82e2 (diff)
Someone forgot to make correct deps for timer.h. Fixed.
Added InspTimer::CancelRepeat(), we can use this within the Tick method to cancel a repeat so that the timer is deleted after the tick, as DelTimer isnt safe within the Tick method git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6283 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/timer.h')
-rw-r--r--include/timer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/timer.h b/include/timer.h
index f8e2bdcdf..9820be2fb 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -66,6 +66,11 @@ class InspTimer : public Extensible
{
return secs;
}
+
+ void CancelRepeat()
+ {
+ repeat = false;
+ }
};