summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index a6f86d2f2..c4c43ca16 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -360,6 +360,10 @@ void DoBackgroundUserStuff(time_t TIME)
FullConnectUser(curr,&GlobalGoners);
continue;
}
+
+ if ((fd_ref_table[cfd] != curr) && (curr))
+ /* Somebody blatted this user in OnCheckReady (!) */
+ continue;
if ((curr->dns_done) && (curr->registered == 3) && (AllModulesReportReady(curr)))
{
@@ -368,6 +372,10 @@ void DoBackgroundUserStuff(time_t TIME)
ZapThisDns(curr->fd);
continue;
}
+
+ if ((fd_ref_table[cfd] != curr) && (curr))
+ /* Somebody blatted this user in OnCheckReady (!) */
+ continue;
// It's time to PING this user. Send them a ping.
if ((TIME > curr->nping) && (curr->registered == 7))