We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 254d39c commit 5f79695Copy full SHA for 5f79695
1 file changed
app/src/main/java/me/zhanghai/android/files/provider/root/RootFileService.java
@@ -141,7 +141,9 @@ private static Shell.Interactive launchSuShell() throws RemoteFileSystemExceptio
141
});
142
shell.waitForIdle();
143
if (!successfulHolder[0]) {
144
- shell.close();
+ if (shell.isRunning()) {
145
+ shell.closeImmediately();
146
+ }
147
throw new RemoteFileSystemException("Cannot launch su shell, exit code: "
148
+ exitCodeHolder[0]);
149
}
0 commit comments