But while loop is repeated until expression is false. So if MQTT is not connected it will not exit loop.
Am I right?