mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-18 06:41:08 +00:00
No RTE on closing a closed mantle
This commit is contained in:
@@ -192,7 +192,7 @@ public class Mantle {
|
|||||||
public synchronized void close() {
|
public synchronized void close() {
|
||||||
Iris.debug("Closing The Mantle " + C.DARK_AQUA + dataFolder.getAbsolutePath());
|
Iris.debug("Closing The Mantle " + C.DARK_AQUA + dataFolder.getAbsolutePath());
|
||||||
if (closed.get()) {
|
if (closed.get()) {
|
||||||
throw new RuntimeException("The Mantle is closed");
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
closed.set(true);
|
closed.set(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user