openhab-addons/bundles/org.openhab.binding.lifx/src
Wouter Born 73ed075d4e
[lifx] Improve InterruptedException handling (#11653)
When the binding is stopped sleeping threads are interrupted by design.
By throwing the InterruptedException, it should be caught in LifxSelectorUtil.sendPacket (which is waiting for the packet interval to elapse), which will then abort sending a packet.

This prevents:

```
[ERROR] [lifx.internal.util.LifxThrottlingUtil] - An exception occurred while putting the thread to sleep : 'sleep interrupted'
```

Signed-off-by: Wouter Born <github@maindrain.net>
2021-11-28 16:37:29 +01:00
..
main [lifx] Improve InterruptedException handling (#11653) 2021-11-28 16:37:29 +01:00
test/java/org/openhab/binding/lifx/internal [lifx] Improve firmware version support (#10384) 2021-03-24 23:39:34 +01:00