mirror of
https://github.com/anope/anope.git
synced 2026-06-25 07:56:38 +02:00
Added Anope::CurTime to keep us from calling time() everywhere
This commit is contained in:
@@ -65,6 +65,7 @@ class SocketEngineSelect : public SocketEngineBase
|
||||
tval.tv_usec = 0;
|
||||
|
||||
int sresult = select(MaxFD + 1, &rfdset, &wfdset, &efdset, &tval);
|
||||
Anope::CurTime = time(NULL);
|
||||
|
||||
if (sresult == -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user