diff options
| author | rebecca <ubq323@ubq323.website> | 2026-09-12 18:58:49 +0100 |
|---|---|---|
| committer | rebecca <ubq323@ubq323.website> | 2026-09-12 18:58:49 +0100 |
| commit | 90856a67fa2fa8061254006974b8921b4e97bc1a (patch) | |
| tree | cce28902a826d511b6bd38755c886746fe5cd18e /pylon.lua | |
| parent | 085040f49cc1386b294857aa68651329b0044420 (diff) | |
more oop refactoring
Diffstat (limited to 'pylon.lua')
| -rw-r--r-- | pylon.lua | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -20,9 +20,12 @@ function BasePylon.log(self, ...) if self.debug then print(self.name, ...) end end function BasePylon.run(self) self.cq = cqueues.new() - self:_connect() - self.cq:wrap(self.recving, self) - self.cq:wrap(self.sending, self) - print(self.name, self.cq:loop()) end + self.cq:wrap(function() + self:_connect() + self.cq:wrap(self.recving, self) + self.cq:wrap(self.sending, self) + end) + print(self.name, self.cq:loop()) +end return BasePylon |
