summaryrefslogtreecommitdiff
path: root/src/timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index 39e076c..e025644 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -72,6 +72,14 @@ void
CompTimer::start ()
{
stop ();
+
+ if (mCallBack.empty ())
+ {
+ compLogMessage ("core", CompLogLevelWarn,
+ "Attempted to start timer without callback.");
+ return;
+ }
+
mActive = true;
screen->priv->addTimer (this);
}