diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 6 |
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() |