mirror of
https://github.com/mtan93/homebridge.git
synced 2026-04-14 06:13:12 +01:00
[Philips Hue] retry if command failed due to api rate limit.
This commit is contained in:
@@ -216,7 +216,13 @@ PhilipsHueAccessory.prototype = {
|
|||||||
that.log(device.name + ", characteristic: " + characteristic + ", value: " + value + ".");
|
that.log(device.name + ", characteristic: " + characteristic + ", value: " + value + ".");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
that.log(err);
|
if (err.code == "ECONNRESET") {
|
||||||
|
setTimeout(function() {
|
||||||
|
that.executeChange(api, device, characteristic, value);
|
||||||
|
}, 300);
|
||||||
|
} else {
|
||||||
|
that.log(err);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user