def remove_socket(self, socket):
        assert socket.addr == self.addr
        socket.close()
        with self.llc.lock:
            try: self.sock_list.remove(socket)
            except __HOLE__: pass
            if len(self.sock_list) == 0:
                # completely remove this sap
                self.llc.sap[self.addr] = None
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/llcp/llc.py/ServiceAccessPoint.remove_socket