1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 18:43:13 +02:00

Change Timer::Tick to return bool, get rid of the repeating field.

This commit is contained in:
Sadie Powell
2026-05-02 14:34:17 +01:00
parent c0bafe10b4
commit f12b590a6d
15 changed files with 52 additions and 53 deletions
+2 -1
View File
@@ -194,12 +194,13 @@ namespace DNS
/** Used to time out the query, xalls OnError and lets the TimerManager
* delete this request.
*/
void Tick() override
bool Tick() override
{
Log(LOG_DEBUG_2) << "Resolver: timeout for query " << this->name;
Query rr(*this);
rr.error = ERROR_TIMEDOUT;
this->OnError(&rr);
return false;
}
};