summaryrefslogtreecommitdiff
path: root/src/common/timer.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2014-03-14 19:25:35 -0700
committerBen Longbons <b.r.longbons@gmail.com>2014-03-15 11:47:05 -0700
commit3c4f4f003d9fdbf759e42ced4fece8dd6a506298 (patch)
treea7cc1d07995a6330c22345935968da40baae6ba9 /src/common/timer.cpp
parentf2757bbfd049777f6fa9089bd33e38f80290c039 (diff)
downloadtmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.gz
tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.bz2
tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.tar.xz
tmwa-3c4f4f003d9fdbf759e42ced4fece8dd6a506298.zip
Fix session death and shutdown when bored
Diffstat (limited to 'src/common/timer.cpp')
-rw-r--r--src/common/timer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/timer.cpp b/src/common/timer.cpp
index ee62df2..b5a2a5e 100644
--- a/src/common/timer.cpp
+++ b/src/common/timer.cpp
@@ -194,3 +194,8 @@ tick_t file_modified(ZString name)
return tick_t();
return tick_t(std::chrono::seconds(buf.st_mtime));
}
+
+bool has_timers()
+{
+ return !timer_heap.empty();
+}