def close_connection(self, connection):
        self.cycle.close()
        for l in self._avail_channels, self.channels:
            while l:
                try:
                    channel = l.pop()
                except (IndexError, __HOLE__):  # pragma: no cover
                    pass
                else:
                    channel.close()
dataset/ETHPy150Open celery/kombu/kombu/transport/virtual/__init__.py/Transport.close_connection