[powermax] Fix handling of InterruptedException (Thread.sleep) (#10463)
Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
d39e24bdf0
commit
80ffaeec7b
|
@ -116,6 +116,7 @@ public class PowermaxSerialConnector extends PowermaxConnector implements Serial
|
||||||
logger.trace("RXTX library CPU load workaround, sleep forever");
|
logger.trace("RXTX library CPU load workaround, sleep forever");
|
||||||
Thread.sleep(Long.MAX_VALUE);
|
Thread.sleep(Long.MAX_VALUE);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue