mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
Making Thread's isInterrupted() non-static and make it use the current instance's interrupted variable.
This commit is contained in:
parent
cad4719f7d
commit
5061d7fe4d
@ -151,8 +151,8 @@ public class Thread implements Runnable {
|
||||
|
||||
private static native boolean interrupted(long peer);
|
||||
|
||||
public static boolean isInterrupted() {
|
||||
return currentThread().interrupted;
|
||||
public boolean isInterrupted() {
|
||||
return interrupted;
|
||||
}
|
||||
|
||||
public static void sleep(long milliseconds) throws InterruptedException {
|
||||
|
Loading…
Reference in New Issue
Block a user