diff options
Diffstat (limited to 'src/inspircd.cpp')
-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 1509553ce..0bdffba64 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -80,8 +80,12 @@ void InspIRCd::Cleanup() int MyModCount = this->GetModuleCount(); for (unsigned int i = 0; i < stats->BoundPortCount; i++) + { /* This calls the constructor and closes the listening socket */ delete Config->openSockfd[i]; + Config->openSockfd[i] = NULL; + } + stats->BoundPortCount = 0; /* We do this more than once, so that any service providers get a * chance to be unhooked by the modules using them, but then get |