From eece0f9d1ca55e86f36db9aa492e7435f4cd3061 Mon Sep 17 00:00:00 2001
From: Matthew Wild <mwild1@gmail.com>
Date: Fri, 27 Apr 2012 22:32:04 +0100
Subject: hostmanager: Add some TODO comments

---
 core/hostmanager.lua | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 91c6d4e1..39af5732 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -109,6 +109,7 @@ function deactivate(host, reason)
 	end
 	
 	-- Disconnect local users, s2s connections
+	-- TODO: These should move to mod_c2s and mod_s2s (how do they know they're being unloaded and not reloaded?)
 	if host_session.sessions then
 		for username, user in pairs(host_session.sessions) do
 			for resource, session in pairs(user.sessions) do
@@ -133,6 +134,7 @@ function deactivate(host, reason)
 		end
 	end
 
+	-- TODO: This should be done in modulemanager
 	if host_session.modules then
 		for module in pairs(host_session.modules) do
 			modulemanager.unload(host, module);
-- 
cgit v1.2.3