Skip to content

Commit

Permalink
Explicitely ignoring return value of unsubscribe.
Browse files Browse the repository at this point in the history
  • Loading branch information
gabryelreyes committed Jan 25, 2024
1 parent 607f42a commit d86a13c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MqttService/src/MqttService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ void MqttService::unsubscribe(const char* topic)
{
Subscriber* subscriber = *it;

m_mqttClient.unsubscribe(subscriber->topic.c_str());
(void)m_mqttClient.unsubscribe(subscriber->topic.c_str());

(void)m_subscriberList.erase(it);
delete subscriber;
Expand Down

0 comments on commit d86a13c

Please sign in to comment.