From 2fbbc8567965a3ebae7768582f75e6cb76b14991 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Tue, 9 Sep 2014 14:55:56 +0200 Subject: [PATCH] Fix for http server not started correctly --- openlp/plugins/remotes/lib/httpserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openlp/plugins/remotes/lib/httpserver.py b/openlp/plugins/remotes/lib/httpserver.py index 9a904090d..826b0530d 100644 --- a/openlp/plugins/remotes/lib/httpserver.py +++ b/openlp/plugins/remotes/lib/httpserver.py @@ -144,6 +144,7 @@ class OpenLPServer(RegistryProperties): try: self.httpd = server_class((address, port), CustomHandler) log.debug("Server started for class %s %s %d" % (server_class, address, port)) + break except OSError: log.debug("failed to start http server thread state %d %s" % (loop, self.http_thread.isRunning())) @@ -151,6 +152,8 @@ class OpenLPServer(RegistryProperties): time.sleep(0.1) except: log.error('Failed to start server ') + loop += 1 + time.sleep(0.1) def stop_server(self): """