Skip to content

Commit

Permalink
[powermax] Fix handling of InterruptedException (Thread.sleep) (openh…
Browse files Browse the repository at this point in the history
…ab#10463)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Signed-off-by: John Marshall <john.marshall.au@gmail.com>
  • Loading branch information
lolodomo authored and themillhousegroup committed May 10, 2021
1 parent 1604946 commit abf06c7
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public void serialEvent(SerialPortEvent serialPortEvent) {
logger.trace("RXTX library CPU load workaround, sleep forever");
Thread.sleep(Long.MAX_VALUE);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
}

0 comments on commit abf06c7

Please sign in to comment.