summaryrefslogtreecommitdiff
path: root/pylon.lua
diff options
context:
space:
mode:
Diffstat (limited to 'pylon.lua')
-rw-r--r--pylon.lua10
1 files changed, 5 insertions, 5 deletions
diff --git a/pylon.lua b/pylon.lua
index 12b3fdb..774395f 100644
--- a/pylon.lua
+++ b/pylon.lua
@@ -13,11 +13,11 @@ function BasePylon.check_config(self, vars)
end
function BasePylon.run(self)
- local cq = cqueues.new()
+ self.cq = cqueues.new()
self:_connect()
- cq:wrap(self.recving, self)
- cq:wrap(self.sending, self)
- print(self.pylon_type, cq:loop())
+ self.cq:wrap(self.recving, self)
+ self.cq:wrap(self.sending, self)
+ print(self.pylon_type, self.cq:loop())
end
function BasePylon.post(self, dest_channel, message)
@@ -26,7 +26,7 @@ end
function BasePylon.log(self, ...)
if self.debug then
- print(self.pylon_type, self.name, ...)
+ print(self.name, ...)
end
end