Skip to content

Commit e5a8479

Browse files
authored
Merge pull request #91 from martfra/main
Fix Duplicate Reconnect Call
2 parents e9a02fb + d8e50dd commit e5a8479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mqtt_client/src/MqttClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,6 @@ void MqttClient::connection_lost(const std::string& cause) {
13151315
RCLCPP_ERROR(get_logger(),
13161316
"Connection to broker lost, will try to reconnect...");
13171317
is_connected_ = false;
1318-
connect();
13191318
}
13201319

13211320

@@ -1531,3 +1530,4 @@ void MqttClient::on_failure(const mqtt::token& token) {
15311530
}
15321531

15331532
} // namespace mqtt_client
1533+

0 commit comments

Comments
 (0)