Go to file
Dustin e92d8c9cef mqtt: Break out of receive loop on disconnect
Apparently, the `AsyncReceiver` stream produces nested `Option` objects.
The outer is `None` if "the stream is exhausted," which is somehow
different than the connection being closed; the inner `Option` is `None`
in that case.

We were originally ignoring the inner `None`, but just causes the
async task to go into a busy loop when connection is closed.  We need to
break out of the loop there instead.
2023-01-07 22:22:49 -06:00
src mqtt: Break out of receive loop on disconnect 2023-01-07 22:22:49 -06:00
.gitattributes Initial commit 2022-12-30 09:10:05 -06:00
.gitignore Add basic MQTT client functionality 2022-12-30 13:49:01 -06:00
Cargo.lock Add Home Assistant integration 2023-01-07 17:21:17 -06:00
Cargo.toml Add Home Assistant integration 2023-01-07 17:21:17 -06:00
rustfmt.toml Initial commit 2022-12-30 09:10:05 -06:00