mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-17 07:02:53 -04:00
Fixes database lock exceptions
Thus fixing characters not loading their data correctly from the database after server-restart.
This commit is contained in:
@@ -205,6 +205,8 @@ public class ObjectService implements INetworkDispatch {
|
||||
objectList.put(object.getObjectID(), object);
|
||||
}
|
||||
|
||||
cursor.close(); // Has always to be closed properly or will create undefined locking behaviour!
|
||||
|
||||
cursor = core.getReusableIdODB().getCursor();
|
||||
|
||||
while (cursor.hasNext()) {
|
||||
@@ -212,6 +214,9 @@ public class ObjectService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
loadBuildings();
|
||||
|
||||
cursor.close(); // Has always to be closed properly or will create undefined locking behaviour!
|
||||
|
||||
System.out.println("Finished loading objects.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user