summaryrefslogtreecommitdiff
path: root/src/event/TimeoutMonitor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/TimeoutMonitor.cxx')
-rw-r--r--src/event/TimeoutMonitor.cxx12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/event/TimeoutMonitor.cxx b/src/event/TimeoutMonitor.cxx
index 223c08b1a..b2c14559b 100644
--- a/src/event/TimeoutMonitor.cxx
+++ b/src/event/TimeoutMonitor.cxx
@@ -24,10 +24,8 @@
void
TimeoutMonitor::Cancel()
{
- if (IsActive()) {
- active = false;
+ if (IsActive())
loop.CancelTimer(*this);
- }
}
void
@@ -35,13 +33,5 @@ TimeoutMonitor::Schedule(std::chrono::steady_clock::duration d)
{
Cancel();
- active = true;
loop.AddTimer(*this, d);
}
-
-void
-TimeoutMonitor::Run()
-{
- active = false;
- OnTimeout();
-}