summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 22:53:33 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-04-02 22:53:33 +0000
commiteb7a2a9ea631b9a4d31709d6a36a5d70d3770d27 (patch)
tree85749eb82738299a1571790c15086ef27ef35f66
parent2a5bb0e8a5b21d1c7bc860620834c3ee64555fd7 (diff)
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
-rw-r--r--src/users.cpp7
1 files 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()