mirror of
https://github.com/topjohnwu/libsu.git
synced 2024-11-26 21:40:42 +00:00
Prevent infinite recursion
This commit is contained in:
parent
c4f0a379c6
commit
6c9618b878
@ -44,6 +44,9 @@ public final class MainShell {
|
||||
public static synchronized ShellImpl get() {
|
||||
ShellImpl shell = getCached();
|
||||
if (shell == null) {
|
||||
if (isInitMain) {
|
||||
throw new NoShellException("The main shell died during initialization");
|
||||
}
|
||||
isInitMain = true;
|
||||
if (mainBuilder == null)
|
||||
mainBuilder = new BuilderImpl();
|
||||
|
Loading…
Reference in New Issue
Block a user