From 07e945631dc2abe7a2afe204919a72d25398c687 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 17 Dec 2010 13:35:21 +0000 Subject: mod_pubsub: Preserve service object on module reload --- plugins/mod_pubsub.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua index 769dd49a..dc1b1263 100644 --- a/plugins/mod_pubsub.lua +++ b/plugins/mod_pubsub.lua @@ -195,3 +195,11 @@ service = pubsub.new({ }); module.environment.service = service; +function module.save() + return { service = service }; +end + +function module.restore(data) + service = data.service; + module.environment.service = service; +end -- cgit v1.2.3