mirror of
https://github.com/anope/anope.git
synced 2026-06-29 03:46:37 +02:00
Change Timer::Tick to return bool, get rid of the repeating field.
This commit is contained in:
+3
-2
@@ -298,12 +298,12 @@ public:
|
||||
MyHTTPProvider(Module *c, const Anope::string &n, const Anope::string &i, const unsigned short p, const int t, bool s)
|
||||
: Socket(-1, i.find(':') == Anope::string::npos ? AF_INET : AF_INET6)
|
||||
, HTTP::Provider(c, n, i, p, s)
|
||||
, Timer(c, 10, true)
|
||||
, Timer(c, 10)
|
||||
, timeout(t)
|
||||
{
|
||||
}
|
||||
|
||||
void Tick() override
|
||||
bool Tick() override
|
||||
{
|
||||
while (!this->clients.empty())
|
||||
{
|
||||
@@ -314,6 +314,7 @@ public:
|
||||
delete c;
|
||||
this->clients.pop_front();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
ClientSocket *OnAccept(int fd, const sockaddrs &addr) override
|
||||
|
||||
Reference in New Issue
Block a user