Skip to content

Commit

Permalink
Fixed issues where syncfu bypass would cause server to refuse to start
Browse files Browse the repository at this point in the history
  • Loading branch information
jediminer543 committed Mar 4, 2022
1 parent 34d3619 commit 7503f95
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,16 +199,23 @@ public Class<?> loadClass(String name) throws ClassNotFoundException {
try {
met.invoke(null, (Object)args);
} catch (java.lang.reflect.InvocationTargetException e) {
throw e.getCause();
//throw e.getCause();
e.printStackTrace();
}
//Configuration bootstrapConfiguration = Launcher.class.getModule().getLayer().configuration();
//Configuration rebootstrapConfiguration =
//ModuleClassLoader bootstrapReplacer = new ModuleClassLoader("RE-BOOTSTRAP", rebootstrapConfiguration, List.of(ModuleLayer.boot()));
System.exit(0);
// BROKEN ON SERVERS
//System.exit(0);
// Make thread sit dead
//Thread.currentThread().setDaemon(true);
Thread.currentThread().setUncaughtExceptionHandler((t, e) -> {});
throw new Error("KILLING TO AVOID REBOOT");
//BootstrapLauncher.main();
} catch (Throwable t) {
} catch (Exception t) {
t.printStackTrace();
System.exit(9001);
Thread.currentThread().setUncaughtExceptionHandler((thr, e) -> {});
throw new Error("KILLING TO AVOID REBOOT");
}
}

Expand Down

0 comments on commit 7503f95

Please sign in to comment.