summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 50536099d..b9b9eb33e 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2342,6 +2342,7 @@ int InspIRCd(char** argv, int argc)
InspSocket* s = (InspSocket*)*a;
if (!s->Poll())
{
+ s->Close();
delete s;
module_sockets.erase(a);
break;