[vlma-devel] commit: Save data on shutdown. (Adrien Grand )

git version control git at videolan.org
Sun Sep 14 17:01:19 CEST 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sun Sep 14 11:49:26 2008 +0200| [67ae83a82f1ea80c223e672a47c377ce56b4baf6] | committer: Adrien Grand 

Save data on shutdown.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=67ae83a82f1ea80c223e672a47c377ce56b4baf6
---

 .../main/java/org/videolan/vlma/daemon/Daemon.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/daemon/Daemon.java b/vlma-core/src/main/java/org/videolan/vlma/daemon/Daemon.java
index ddaaa10..269e1ed 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/daemon/Daemon.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/daemon/Daemon.java
@@ -130,6 +130,9 @@ public class Daemon {
     synchronized public void stop() {
         running.set(false);
 
+        // Save data
+        vlmaDao.saveToDisk();
+
         // Stop the monitors
         logger.info("Stopping monitors...");
         for (Monitor monitor : monitors) {



More information about the vlma-devel mailing list