Commits

Andrew Godwin committed 5f19874

SAve server meta first

  • Participants
  • Parent commits 47d4a55

Comments (0)

Files changed (1)

     reactor.run()
 finally:
     # Make sure worlds are flushed
+    logging.log(logging.INFO, "Saving server meta...")
+    factory.saveMeta()
     logging.log(logging.INFO, "Flushing worlds to disk...")
     for world in factory.worlds.values():
         world.stop()
-        world.save_meta()
-    logging.log(logging.INFO, "Saving server meta...")
-    factory.saveMeta()
+        world.save_meta()