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/StateFile.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/StateFile.cxx') diff --git a/src/StateFile.cxx b/src/StateFile.cxx index ae782335d..73af1777c 100644 --- a/src/StateFile.cxx +++ b/src/StateFile.cxx @@ -116,9 +116,8 @@ StateFile::CheckModified() ScheduleSeconds(2 * 60); } -bool +void StateFile::OnTimeout() { Write(); - return false; } -- cgit v1.2.3