summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ident.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 144a3bb53..ee0c3e83b 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -430,8 +430,11 @@ class ModuleIdent : public Module
ServerInstance->Log(DEBUG, "Has ident_socket");
+ time_t compare = isock->age;
+ compare += RequestTimeout;
+
/* Check for timeout of the socket */
- if (isock->age + RequestTimeout > ServerInstance->Time() && !isock->HasResult())
+ if (ServerInstance->Time() >= RequestTimeout)
{
/* Ident timeout */
user->WriteServ("NOTICE Auth :*** Ident request timed out.");