summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index bf99c1fc8..689ed3bf4 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -219,6 +219,12 @@ userrec::~userrec()
ucrec* x = (ucrec*)*n;
delete x;
}
+#ifdef THREADED_DNS
+ if ((!dns_done) && (registered >= 3))
+ {
+ pthread_kill(this->dnsthread, SIGTERM);
+ }
+#endif
}
/* XXX - minor point, other *Host functions return a char *, this one creates it. Might be nice to be consistant? */