def wait_for_connection(self, timeout=None):
        """
        Wait until we've established a connection with the server.

        :param timeout: how long to wait
        """
        if timeout is not None:
            wait_time = 10.0 / timeout
        else:
            wait_time = None
        with self.__connect_wait_condition:
            while not self.is_connected() and not self.connection_error:
                self.__connect_wait_condition.wait(wait_time)
dataset/ETHPy150Open jasonrbriggs/stomp.py/stomp/transport.py/BaseTransport.wait_for_connection/swapped operands of `/`