[wpilibj] DriverStation: Set thread interrupted state (#3846)

This is a Java best practice when catching InterruptedException.
This commit is contained in:
Peter Johnson
2021-12-30 15:13:52 -06:00
committed by GitHub
parent b85c24a79c
commit 102f23bbdb

View File

@@ -1107,6 +1107,7 @@ public class DriverStation {
return true;
} catch (InterruptedException ex) {
// return false on a thread interrupt
Thread.currentThread().interrupt();
return false;
} finally {
m_waitForDataMutex.unlock();