Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lifx] Improve InterruptedException handling #11653

Merged
merged 1 commit into from
Nov 28, 2021

Commits on Nov 28, 2021

  1. [lifx] Improve InterruptedException handling

    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>
    wborn committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    ab08549 View commit details
    Browse the repository at this point in the history