mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-08-02 03:15:52 -04:00
move creature cleanup to the cleanUp() function
This commit is contained in:
@@ -675,7 +675,6 @@ public class NGECore {
|
||||
|
||||
didServerCrash = false;
|
||||
System.out.println("Started Server.");
|
||||
cleanupCreatureODB();
|
||||
setGalaxyStatus(GalaxyStatus.Online);
|
||||
|
||||
}
|
||||
@@ -766,6 +765,7 @@ public class NGECore {
|
||||
config = null;
|
||||
databaseConnection = null;
|
||||
databaseConnection2 = null;
|
||||
cleanupCreatureODB();
|
||||
Runtime.getRuntime().gc();
|
||||
System.out.println("Cleaned Up "
|
||||
+ (Runtime.getRuntime().freeMemory() - memoryUsed)
|
||||
|
||||
Reference in New Issue
Block a user