diff options
-rw-r--r-- | src/inspircd.cpp | 4 |
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()); |