[vlma-devel] commit: Don't send orders to servers that are not available. (Adrien Grand )

git version control git at videolan.org
Wed Dec 17 23:04:59 CET 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Wed Dec 17 23:03:14 2008 +0100| [8fb19ceb609798b53f5e79a1e740f29acc6d5fae] | committer: Adrien Grand 

Don't send orders to servers that are not available.

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

 .../main/java/org/videolan/vlma/OrderManager.java  |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/OrderManager.java b/vlma-core/src/main/java/org/videolan/vlma/OrderManager.java
index 9c038b8..5425064 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/OrderManager.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/OrderManager.java
@@ -184,7 +184,9 @@ public class OrderManager {
                 sendThread.addOrder(order);
                 break;
             case TO_STOP:
-                sendThread.removeOrder(order);
+                if (order.getAdapter().getServer().isUp()) {
+                    sendThread.removeOrder(order);
+                }
                 break;
             default:
                 break;



More information about the vlma-devel mailing list