def _killConnection(self, connection):
        """ Internally used method to destroy a connection whose reconnect
            timeout was reached or which never as successfully connected.

            @param connection:  Connection which should be destroyed.
            @type  connection:  rce.robot.Connection
        """
        assert connection in self._connections
        assert self._deathCandidates in connection

        deathCall = self._deathCandidates.pop(connection)
        if deathCall.active():
            deathCall.cancel()

        connection.destroy()
dataset/ETHPy150Open rapyuta/rce/rce-core/rce/robot.py/RobotClient._killConnection/swapped operands of `in`