[vlma-devel] commit: Ensure data coherency. (Adrien Grand )

git version control git at videolan.org
Fri Feb 6 03:49:44 CET 2009


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Fri Feb  6 03:49:22 2009 +0100| [7c5065886d0ffa97a76cde7bcd0c509a308b6cfe] | committer: Adrien Grand 

Ensure data coherency.

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

 .../vlma/order/management/OrderManager.java        |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/order/management/OrderManager.java b/vlma-core/src/main/java/org/videolan/vlma/order/management/OrderManager.java
index 2c1888b..d12e43c 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/order/management/OrderManager.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/order/management/OrderManager.java
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2008 the VideoLAN team
+ * Copyright (C) 2008-2009 the VideoLAN team
  *
  * This file is part of VLMa.
  *
@@ -153,19 +153,21 @@ public class OrderManager {
             Order order = entry.getValue().getKey();
             switch(entry.getValue().getValue()) {
             case TO_STOP:
+            case STOPPED:
                 order.getAdapter().setBusy(false);
                 for (Program program : order.getPrograms()) {
                     program.setAdapter(null);
                 }
                 break;
             case TO_START:
+            case STARTED:
                 order.getAdapter().setBusy(true);
                 for (Program program : order.getPrograms()) {
                     program.setAdapter(order.getAdapter());
                 }
                 break;
             default:
-                break;
+                assert false : "Unknown state";
             }
         }
         return result;



More information about the vlma-devel mailing list