on_close() is not a coroutine.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
log.debug("%s has joined the stream for %s" % (consumer, self.job))
- async def leave(self, consumer):
+ def leave(self, consumer):
"""
Called when a consumer wants to leave the stream
"""
# Send messages without any delay
self.set_nodelay(True)
- async def on_close(self):
+ def on_close(self):
"""
Leave the stream
"""
- await self.stream.leave(self)
+ self.stream.leave(self)
async def message(self, message):
"""