Merge pull request #397 from Governa/patch-1
MQTT ignores too many handlers registered
This commit is contained in:
commit
49a0a74ae2
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue