def clientConnectionLost(self, connector, reason):
        self.currentCaseId += 1
        if self.endCaseId <= self.currentCaseId:
            self.resource = "/runCase?case={}&agent={}".format(self.currentCaseId, self.agent)
            connector.connect()
        elif self.updateReports:
            self.resource = "/updateReports?agent={}".format(self.agent)
            self.updateReports = False
            connector.connect()
        else:
            reactor.stop()

    # FIXME: port to asyncio
dataset/ETHPy150Open crossbario/autobahn-python/examples/asyncio/websocket/testee/testee_client.py/TesteeClientFactory.clientConnectionLost/swapped operands of `<=`