From 8ffd7653ac8e2b5983bc36cbe163deab8414dc76 Mon Sep 17 00:00:00 2001 From: Bruceforce Date: Wed, 30 Jan 2019 18:08:15 +0100 Subject: [PATCH] [devicePublish.js] Increase timeout (#974) This should avoid a non-function state of the app when too many requests arrive at a specific time frame (e. g. turning a lot of lights out in the same time). See discussion in #362 --- lib/extension/devicePublish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extension/devicePublish.js b/lib/extension/devicePublish.js index 715c95ed..24f95e3a 100644 --- a/lib/extension/devicePublish.js +++ b/lib/extension/devicePublish.js @@ -172,7 +172,7 @@ class DevicePublish { } ); - setTimeout(() => queueCallback(), 100); + setTimeout(() => queueCallback(), 170); }); // It's possible for devices to get out of sync when writing an attribute that's not reportable.