summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 14:22:14 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 14:22:14 +0000
commit4c8c7e6c70ab71b92abc43fb4449566a897b8a28 (patch)
treeccf367ff3a3552776ef95531fee867584d7379b2
parent529c6acc0177651e0b01cc6d7dcb7509fce17d14 (diff)
Close client sockets too (do these last)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 786ff97b2..e5b9fe1eb 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -86,6 +86,10 @@ void InspIRCd::Restart(const std::string &reason)
for (int k = 0; k < MyModCount; k++)
this->UnloadModule(mymodnames[k].c_str());
+ this->Log(DEBUG,"Closing client sockets...");
+ for (std::vector<userrec*>::const_iterator i = this->local_users.begin(); i != this->local_users.end(); i++)
+ (*i)->CloseSocket();
+
std::string me = Config->MyDir + "/inspircd";
this->Log(DEBUG,"Closing log and calling execv to start new instance of '%s'...", me.c_str());