event/TimeoutMonitor: eliminate support for periodic events

No caller needs this.  Fixes use-after-free after returning from
Client::OnTimeout().
This commit is contained in:
Max Kellermann
2013-04-08 23:14:07 +02:00
parent dca1115196
commit 98cbc0ea79
8 changed files with 17 additions and 27 deletions

View File

@@ -30,7 +30,7 @@ Client::SetExpired()
TimeoutMonitor::Schedule(0);
}
bool
void
Client::OnTimeout()
{
if (!IsExpired()) {
@@ -39,5 +39,4 @@ Client::OnTimeout()
}
Close();
return false;
}