[powermax] Fix handling of InterruptedException (Thread.sleep) (#10463)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-04-05 15:06:44 +02:00 committed by GitHub
parent d39e24bdf0
commit 80ffaeec7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -116,6 +116,7 @@ public class PowermaxSerialConnector extends PowermaxConnector implements Serial
logger.trace("RXTX library CPU load workaround, sleep forever");
Thread.sleep(Long.MAX_VALUE);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
}
}