Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab0b3510 authored by Shai Barack's avatar Shai Barack
Browse files

Restore thread interrupted state on interrupt

This addresses a linter warning.
I haven't observed a particular issue caused by this, but I don't
see any harm.

Change-Id: I4f532518464de91450222a967aa19769b8b88f70
Flag: EXEMPT test-only code
parent bdbd6fbc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -174,6 +174,7 @@ public class TestLooperManager {
                try {
                    execution.wait();
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                }
                if (execution.response != null) {
                    throw new RuntimeException(execution.response);
@@ -231,6 +232,7 @@ public class TestLooperManager {
        try {
            mLooperHolderLatch.await();
        } catch (InterruptedException e) {
            Thread.currentThread().interrupt();
        }
    }

@@ -245,6 +247,7 @@ public class TestLooperManager {
                        processMessage(take);
                    }
                } catch (InterruptedException e) {
                    Thread.currentThread().interrupt();
                }
            }
        }