Merge pull request #397 from Governa/patch-1

MQTT ignores too many handlers registered
This commit is contained in:
Ruslan V. Uss 2017-06-22 01:09:45 +05:00 committed by GitHub
commit 49a0a74ae2

View file

@ -424,6 +424,8 @@ int mqtt_subscribe(mqtt_client_t* c, const char* topic, enum mqtt_qos qos, mqtt
if (rc != 0x80)
{
int i;
rc = MQTT_FAILURE;
for (i = 0; i < MQTT_MAX_MESSAGE_HANDLERS; ++i)
{
if (c->messageHandlers[i].topicFilter == 0)