From da404eb4154d8fe93258ec4adf190a97c04065b2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 27 Jul 2006 11:41:20 +0000 Subject: Fix crashbug when exiting a remote client with threaded dns on (oops) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4552 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 118d9cdcf..553819d49 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -220,7 +220,7 @@ userrec::~userrec() delete x; } #ifdef THREADED_DNS - if ((!dns_done) && (registered >= 3)) + if ((IS_LOCAL(this)) && (!dns_done) && (registered >= 3)) { pthread_kill(this->dnsthread, SIGTERM); } -- cgit v1.2.3