mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-13 20:49:02 -04:00
Fix glitch when restarting on 2nd pass of module unload
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6071 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
1bfe43ebfd
commit
d490ee11a8
@ -69,7 +69,7 @@ void InspIRCd::Exit(int status)
|
||||
void InspIRCd::Restart(const std::string &reason)
|
||||
{
|
||||
std::vector<std::string> mymodnames;
|
||||
int MyModCount = ModCount;
|
||||
int MyModCount = 0;
|
||||
|
||||
/* SendError flushes each client's queue,
|
||||
* regardless of writeability state
|
||||
@ -86,6 +86,7 @@ void InspIRCd::Restart(const std::string &reason)
|
||||
*/
|
||||
for (int tries = 0; tries < 2; tries++)
|
||||
{
|
||||
MyModCount = ModCount;
|
||||
mymodnames.clear();
|
||||
|
||||
/* Unload all modules, so they get a chance to clean up their listeners */
|
||||
|
Loading…
x
Reference in New Issue
Block a user