From 0af362883d659d9481a7f2bf6cf0c7459997f5e2 Mon Sep 17 00:00:00 2001
From: ulrich
Date: Wed, 24 Mar 2021 14:00:19 +0000
Subject: [PATCH] Skripte zum Start des AV-Direktor als Dienst hinzugefuegt, Konstanten von App nach OMXPlayer verschoben, Doku ergaenzt

---
 src/de/uhilger/avdirektor/handler/StopServerHandler.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/de/uhilger/avdirektor/handler/StopServerHandler.java b/src/de/uhilger/avdirektor/handler/StopServerHandler.java
index 44c4bd6..b28a8bf 100644
--- a/src/de/uhilger/avdirektor/handler/StopServerHandler.java
+++ b/src/de/uhilger/avdirektor/handler/StopServerHandler.java
@@ -11,11 +11,12 @@
  *
  * @author ulrich
  */
-public class StopServerHandler implements HttpHandler {
+public class StopServerHandler extends OMXPlayer implements HttpHandler {
 
   @Override
   public void handle(HttpExchange exchange) throws IOException {
     Logger.getLogger(StopServerHandler.class.getName()).info(exchange.getRequestURI().toString());    
+    this.kommando(CMD_STOP);
     String response = "Server stopped";
     exchange.sendResponseHeaders(200, response.length());
     OutputStream os = exchange.getResponseBody();

--
Gitblit v1.9.3