From 17a799044bc20d18a07bbd12270ce3c079799dd9 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Sun, 25 Sep 2016 00:27:26 +0200
Subject: some minor cleanup


diff --git a/src/rhctl/main.go b/src/rhctl/main.go
index 809dd62..b0b57e6 100644
--- a/src/rhctl/main.go
+++ b/src/rhctl/main.go
@@ -95,11 +95,10 @@ func main() {
 		}
 		servers = append(servers, server)
 	}
-	// TODO: re-enable this!
-	// if len(servers) <= 0 {
-	// 	rhl.Printf("Error: there is no playout server configured...")
-	// 	return
-	// }
+	if len(servers) <= 0 {
+		rhl.Printf("Error: there is no playout server configured...")
+		return
+	}
 
 	ctrl := SwitchControlInit(conf, sw, servers)
 
diff --git a/web-static/socket.html b/web-static/socket.html
index cf367e3..c0939da 100644
--- a/web-static/socket.html
+++ b/web-static/socket.html
@@ -38,7 +38,7 @@
     <script type="text/javascript">
       function State(req) {
         this.req = req
-        this.sock = new WebSocket("wss://rdimport.helsinki.at/rhctl/socket");
+        this.sock = new WebSocket("ws://localhost:4080/socket");
         this.sock_onmessage = function (event) {
           $('#statemsg').text(event.data);
         }
@@ -58,13 +58,10 @@
         s = new State(req);
       }
 
-      function init() {
-        $('#buttonstate').removeAttr('disabled','disabled');
-      }
 
       function Subscription(req) {
         this.req = req
-        this.sock = new WebSocket("wss://rdimport.helsinki.at/rhctl/socket");
+        this.sock = new WebSocket("ws://localhost:4080/socket");
         this.sock_onmessage = function (event) {
           $('#rawmsg').append(event.data + "\n\n");
         }
-- 
cgit v0.10.2