mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
Fix bug with multiple clients
If two clients were connected at the same time, the chunked updates from one could cause the other to recieve UI_EXTEND messages. This is fixed by passing the client in to jsonDom.
This commit is contained in:
parent
55b291eb50
commit
bc34078f42
@ -445,7 +445,7 @@ void onWsEvent(
|
|||||||
if (msg.startsWith(F("uiok:")))
|
if (msg.startsWith(F("uiok:")))
|
||||||
{
|
{
|
||||||
int idx = msg.substring(msg.indexOf(':') + 1).toInt();
|
int idx = msg.substring(msg.indexOf(':') + 1).toInt();
|
||||||
ESPUI.jsonDom(idx);
|
ESPUI.jsonDom(idx, client);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
uint16_t id = msg.substring(msg.lastIndexOf(':') + 1).toInt();
|
uint16_t id = msg.substring(msg.lastIndexOf(':') + 1).toInt();
|
||||||
|
Loading…
Reference in New Issue
Block a user