Skip to content

Commit

Permalink
MQTT: reduce initializing->ready fallback timer timeout to 4s
Browse files Browse the repository at this point in the history
Wait no longer than 4s to receive all "initial" messages from the
broker, before transitioning to Ready state.
  • Loading branch information
chriadam committed Nov 13, 2023
1 parent 7b63d59 commit dc2dff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qt/ve_qitems_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ VeQItemMqttProducer::VeQItemMqttProducer(
});

mReadyStateFallbackTimer->setSingleShot(true);
mReadyStateFallbackTimer->setInterval(10000);
mReadyStateFallbackTimer->setInterval(4000);
connect(mReadyStateFallbackTimer, &QTimer::timeout,
this, [this] {
mReadyStateTimer->stop();
Expand Down

0 comments on commit dc2dff1

Please sign in to comment.