From 98cbc0ea79ce5bea637f7bd7ebe94e698cd818a0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Apr 2013 23:14:07 +0200 Subject: event/TimeoutMonitor: eliminate support for periodic events No caller needs this. Fixes use-after-free after returning from Client::OnTimeout(). --- src/event/TimeoutMonitor.hxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/event/TimeoutMonitor.hxx') diff --git a/src/event/TimeoutMonitor.hxx b/src/event/TimeoutMonitor.hxx index 6914bcb61..4ebc6b644 100644 --- a/src/event/TimeoutMonitor.hxx +++ b/src/event/TimeoutMonitor.hxx @@ -47,13 +47,10 @@ public: void Cancel(); protected: - /** - * @return true reschedules the timeout again - */ - virtual bool OnTimeout() = 0; + virtual void OnTimeout() = 0; private: - bool Run(); + void Run(); static gboolean Callback(gpointer data); }; -- cgit v1.2.3