mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 19:59:50 +03:00
violation while stop chans
This commit is contained in:
@@ -182,8 +182,10 @@ if (configLocked)
|
|||||||
debugSerial<<F("Stopping channels ...")<<endl;
|
debugSerial<<F("Stopping channels ...")<<endl;
|
||||||
timerHandlerBusy++;
|
timerHandlerBusy++;
|
||||||
//Stoping the channels
|
//Stoping the channels
|
||||||
|
if (items)
|
||||||
|
{
|
||||||
aJsonObject * item = items->child;
|
aJsonObject * item = items->child;
|
||||||
while (items && item)
|
while (item)
|
||||||
{
|
{
|
||||||
if (item->type == aJson_Array && aJson.getArraySize(item)>0)
|
if (item->type == aJson_Array && aJson.getArraySize(item)>0)
|
||||||
{
|
{
|
||||||
@@ -196,6 +198,7 @@ while (items && item)
|
|||||||
}
|
}
|
||||||
item = item->next;
|
item = item->next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pollingItem = NULL;
|
pollingItem = NULL;
|
||||||
debugSerial<<F("Stopped")<<endl;
|
debugSerial<<F("Stopped")<<endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user