hostmanager: Add some TODO comments
authorMatthew Wild <mwild1@gmail.com>
Fri, 27 Apr 2012 22:32:04 +0100
changeset 4731 84596fc32b31
parent 4730 2587e249927f
child 4732 29ff25c8bf56
hostmanager: Add some TODO comments
core/hostmanager.lua
--- a/core/hostmanager.lua	Fri Apr 27 22:31:53 2012 +0100
+++ b/core/hostmanager.lua	Fri Apr 27 22:32:04 2012 +0100
@@ -109,6 +109,7 @@
 	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 @@
 		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);