In an attempt to save all rooms when the server is shutdown I added the following code to the destroy() method of the extension:
Code: Select all
try {
trace("Saving rooms...");
getParentZone().getRoomPersistenceApi().saveAllRooms();
} catch (SFSStorageException e) {
trace("Error saving rooms:" + e);
}Is there a place where the code above can be put to facilitate the saving of all the server's rooms at shutdown?
Thanks,
-Eric