diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-02 22:53:33 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-02 22:53:33 +0000 |
commit | eb7a2a9ea631b9a4d31709d6a36a5d70d3770d27 (patch) | |
tree | 85749eb82738299a1571790c15086ef27ef35f66 /src | |
parent | 2a5bb0e8a5b21d1c7bc860620834c3ee64555fd7 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 7 |
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() |