def shutdown(self):
        while True:
            try: socket = self.sock_list.pop()
            except IndexError: return
            log.debug("shutdown socket %s" % str(socket))
            socket.bind(None); socket.close()

    #
    # enqueue() and dequeue() are called from llc run thread
    #
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/llcp/llc.py/ServiceAccessPoint.shutdown/original