1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 21:03: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
+5 -3
View File
@@ -534,8 +534,9 @@ public:
}
/* Times out after a few seconds */
void Tick() override
bool Tick() override
{
return false;
}
void Reply(Packet *p) override
@@ -718,7 +719,7 @@ public:
MyManager(Module *creator)
: Manager(creator)
, Timer(300, true)
, Timer(300)
, serial(Anope::CurTime)
, cur_id(Anope::RandomNumber())
{
@@ -1011,7 +1012,7 @@ public:
return serial;
}
void Tick() override
bool Tick() override
{
Log(LOG_DEBUG_2) << "Resolver: Purging DNS cache";
@@ -1025,6 +1026,7 @@ public:
if (req.created + static_cast<time_t>(req.ttl) < Anope::CurTime)
this->cache.erase(it);
}
return true;
}
private: