Update LightMQTT.swift
Update LightMQTT.swift

Move while loop to wait for .streamStatus to open and make sure both inputStream and outputStream are actually .open before dispatching to background thread for reading from stream.

This gracefully handles connect() when there is no network connectivity.
PasiSalenius/LightMQTT