From eb7a2a9ea631b9a4d31709d6a36a5d70d3770d27 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 2 Apr 2008 22:53:33 +0000 Subject: Fix for bug #456 so we can be rid of it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9281 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index 361b7ba21..95ae87f5d 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -314,8 +314,11 @@ char* User::MakeHostIP() void User::CloseSocket() { - ServerInstance->SE->Shutdown(this, 2); - ServerInstance->SE->Close(this); + if (this > -1) + { + ServerInstance->SE->Shutdown(this, 2); + ServerInstance->SE->Close(this); + } } char* User::GetFullHost() -- cgit v1.2.3