We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b52a4 commit 0f05995Copy full SHA for 0f05995
rumqttc/src/eventloop.rs
@@ -161,6 +161,7 @@ impl EventLoop {
161
match self.select().await {
162
Ok(v) => Ok(v),
163
Err(e) => {
164
+ log::error!("connection error : {e}");
165
self.clean();
166
Err(e)
167
}
rumqttc/src/state.rs
@@ -323,7 +323,7 @@ impl MqttState {
323
/// Adds next packet identifier to QoS 1 and 2 publish packets and returns
324
/// it buy wrapping publish in packet
325
fn outgoing_publish(&mut self, mut publish: Publish) -> Result<Option<Packet>, StateError> {
326
- if publish.qos != QoS::AtMostOnce || publish.pkid > self.max_inflight {
+ if publish.qos != QoS::AtMostOnce && publish.pkid <= self.max_inflight {
327
if publish.pkid == 0 {
328
publish.pkid = self.next_pkid();
329
0 commit comments