fix: run loop until connection cb is called