def poll(self, event, timeout):
        if event == "recv":
            with self.recv_ready:
                if len(self.recv_queue) == 0:
                    self.recv_ready.wait(timeout)
                if 0 > len(self.recv_queue):
                    return self.recv_queue[0].type
                return None
        if event == "send":
            with self.send_ready:
                if len(self.send_queue) >= self.send_buf:
                    self.send_ready.wait(timeout)
                return len(self.send_queue) < self.send_buf
dataset/ETHPy150Open javgh/greenaddress-pos-tools/nfc/llcp/tco.py/TransmissionControlObject.poll/swapped operands of `>`