diff options
-rw-r--r-- | app/src/main/java/com/wireguard/android/util/RootShell.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/com/wireguard/android/util/RootShell.java b/app/src/main/java/com/wireguard/android/util/RootShell.java index 947a6679..f8b5bb9f 100644 --- a/app/src/main/java/com/wireguard/android/util/RootShell.java +++ b/app/src/main/java/com/wireguard/android/util/RootShell.java @@ -127,7 +127,7 @@ public class RootShell { * @param command Command to run as root. * @return The exit value of the last command run, or -1 if there was an internal error. */ - public int run(final Collection<String> output, final String command) + public synchronized int run(final Collection<String> output, final String command) throws ErrnoException, IOException, NoRootException { ensureRoot(); |