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:
@@ -30,7 +30,7 @@ Client::SetExpired()
|
||||
TimeoutMonitor::Schedule(0);
|
||||
}
|
||||
|
||||
bool
|
||||
void
|
||||
Client::OnTimeout()
|
||||
{
|
||||
if (!IsExpired()) {
|
||||
@@ -39,5 +39,4 @@ Client::OnTimeout()
|
||||
}
|
||||
|
||||
Close();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user