Skip to content

Commit 75bccc8

Browse files
authored
Patch/fix test crashes (#8394)
1 parent 302a0dd commit 75bccc8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/ch/njol/skript/Skript.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,8 @@ private void runTests() {
985985
} catch (IOException e) {
986986
Skript.exception(e, "Failed to write test results.");
987987
}
988-
989-
Bukkit.getServer().shutdown();
988+
// delay by 1 tick to avoid the watchdog from thinking the shutdown tick took too long.
989+
Bukkit.getScheduler().runTaskLater(Skript.this, () -> Bukkit.getServer().shutdown(), 1);
990990
}, shutdownDelay.get());
991991
});
992992
}

0 commit comments

Comments
 (0)