Diff

core/hostmanager.lua @ 5123:7c5c86fa552e

hostmanager, modulemanager: Ensure hosts[*].modules always exists.
author Waqas Hussain <waqas20@gmail.com>
date Thu, 13 Sep 2012 00:32:12 +0500
parent 5081:c0c060e450be
child 5347:32e25358c3c2
line wrap: on
line diff
--- a/core/hostmanager.lua	Wed Sep 12 23:46:10 2012 +0500
+++ b/core/hostmanager.lua	Thu Sep 13 00:32:12 2012 +0500
@@ -75,6 +75,7 @@
 		events = events_new();
 		dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen();
 		send = host_send;
+		modules = {};
 	};
 	if not host_config.core.component_module then -- host
 		host_session.type = "local";