diff --git a/simpleFileServer.py b/simpleFileServer.py index 1a47413..89c617d 100644 --- a/simpleFileServer.py +++ b/simpleFileServer.py @@ -67,13 +67,12 @@ class serveRA(http.server.SimpleHTTPRequestHandler): def startServer(): handler = serveRA - started = False - while not started: + while True: + print("trying to start...") try: with socketserver.TCPServer(("", PORT), handler) as httpd: print('starting server!') httpd.serve_forever() - started = True except: print("server did not start trying again!") sleep(5)