From 5e386b10ca25434a65578e226b14c1344280c3a1 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 2 Dec 2005 09:23:51 +0000 Subject: Fixed dns pthread_kill git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2106 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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() -- cgit v1.2.3