Skip to content

Commit 1c70c41

Browse files
committed
fixup! Make async tedge mqtt sub
1 parent c11c1f7 commit 1c70c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/common/mqtt_channel/src/connection.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ impl Connection {
306306
// Wait for Err(MqttState(ConnectionAborted))
307307
// to make sure the disconnect is effective
308308
loop {
309-
if let Err(_) = event_loop.poll().await {
309+
if (event_loop.poll().await).is_err() {
310310
info!("MQTT connection closed");
311311
break;
312312
}

0 commit comments

Comments
 (0)