summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 09:23:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-02 09:23:51 +0000
commit5e386b10ca25434a65578e226b14c1344280c3a1 (patch)
treef3d8269fecf5bf6faf5b7770d98441f32793273a
parent32bb4c102768046195f64194c8951041132835ad (diff)
Fixed dns pthread_kill
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2106 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/users.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 641827428..c78eb4793 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -64,7 +64,11 @@ userrec::userrec()
userrec::~userrec()
{
- pthread_kill(this->dnsthread,9);
+ // for local clients, clean up their dns thread
+ if (!strcmp(this->server,ServerName))
+ {
+ pthread_kill(this->dnsthread,9);
+ }
}
void userrec::CloseSocket()