mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-15 21:49:02 -04:00
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:
parent
529c6acc01
commit
4c8c7e6c70
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user