diff options
author | Max Kellermann <max@duempel.org> | 2013-04-08 23:14:07 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-04-08 23:14:07 +0200 |
commit | 98cbc0ea79ce5bea637f7bd7ebe94e698cd818a0 (patch) | |
tree | a514f72181ce9b3158b25a1c5778c4477062dc06 /src/event/TimeoutMonitor.hxx | |
parent | dca111519627813608807b60b98f3d5133880120 (diff) | |
download | mpd-98cbc0ea79ce5bea637f7bd7ebe94e698cd818a0.tar.gz mpd-98cbc0ea79ce5bea637f7bd7ebe94e698cd818a0.tar.xz mpd-98cbc0ea79ce5bea637f7bd7ebe94e698cd818a0.zip |
event/TimeoutMonitor: eliminate support for periodic events
No caller needs this. Fixes use-after-free after returning from
Client::OnTimeout().
Diffstat (limited to 'src/event/TimeoutMonitor.hxx')
-rw-r--r-- | src/event/TimeoutMonitor.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
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); }; |