]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_spanningtree/main.cpp
m_permchannels Save channel TS, topic set time and set by information
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / main.cpp
index 7c93e7d45555054967de8c8d03e41bf5449c598b..ce1792a02b6717a89a3939cafcb9b23fb57746f9 100644 (file)
@@ -815,6 +815,13 @@ void ModuleSpanningTree::OnUnloadModule(Module* mod)
                        sock->Close();
                }
        }
+
+       for (SpanningTreeUtilities::TimeoutList::const_iterator i = Utils->timeoutlist.begin(); i != Utils->timeoutlist.end(); ++i)
+       {
+               TreeSocket* sock = i->first;
+               if (sock->GetIOHook() == mod)
+                       sock->Close();
+       }
 }
 
 // note: the protocol does not allow direct umode +o except