move creature cleanup to the cleanUp() function

This commit is contained in:
Matt Parnell
2014-08-16 23:36:19 -05:00
parent 0543b60bb1
commit 42bfacb76d
+1 -1
View File
@@ -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)