aboutsummaryrefslogtreecommitdiffstats
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar brain2008-04-02 22:53:33 +0000
committerGravatar brain2008-04-02 22:53:33 +0000
commiteb7a2a9ea631b9a4d31709d6a36a5d70d3770d27 (patch)
tree85749eb82738299a1571790c15086ef27ef35f66 /src/users.cpp
parentThis is better than using a const; Since 1.1 we don't need a value at all, we... (diff)
downloadinspircd++-eb7a2a9ea631b9a4d31709d6a36a5d70d3770d27.tar.gz
inspircd++-eb7a2a9ea631b9a4d31709d6a36a5d70d3770d27.tar.bz2
inspircd++-eb7a2a9ea631b9a4d31709d6a36a5d70d3770d27.zip
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
Diffstat (limited to 'src/users.cpp')
-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()