Close client sockets too (do these last)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6069 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-12-23 14:22:14 +00:00
parent 529c6acc01
commit 4c8c7e6c70

View File

@ -86,6 +86,10 @@ void InspIRCd::Restart(const std::string &reason)
for (int k = 0; k < MyModCount; k++) for (int k = 0; k < MyModCount; k++)
this->UnloadModule(mymodnames[k].c_str()); 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"; std::string me = Config->MyDir + "/inspircd";
this->Log(DEBUG,"Closing log and calling execv to start new instance of '%s'...", me.c_str()); this->Log(DEBUG,"Closing log and calling execv to start new instance of '%s'...", me.c_str());