The connection wouldn't always complete if mosquitto_loop_start() was called before mosquitto_connect_async(). Closes #848. Thanks to Ian Gough. Bug: https://github.com/eclipse/mosquitto/issues/848 Signed-off-by: Roger A. Light <roger@atchoo.org>