From 4c8c7e6c70ab71b92abc43fb4449566a897b8a28 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 23 Dec 2006 14:22:14 +0000 Subject: Close client sockets too (do these last) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/inspircd.cpp') 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::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()); -- cgit v1.3.1-10-gc9f91