Fix built-in webserver shutdown

master
Ferry Boender 4 years ago
parent 79c3232d08
commit d548aa5751
  1. 3
      src/scriptform.py

@ -142,7 +142,8 @@ class ScriptForm(object):
# We need to spawn a new thread in which the server is shut down,
# because doing it from the main thread blocks, since the server is
# waiting for connections..
threading.Thread(target=t_shutdown, args=(1,))
thread = threading.Thread(target=t_shutdown, args=(self,))
thread.start()
def main(): # pragma: no cover

Loading…
Cancel
Save