Timeout of joining set to 5 seconds. No use of waiting for another thread to stop. We can run our program while the thread stops

This commit is contained in:
Vakaris 2018-08-04 13:01:19 +03:00
parent 40957f865c
commit 3f8d63c2d9
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ class LockedHTTPServer(threading.Thread):
self._stopped = True self._stopped = True
def stop(self, timeout=60): def stop(self, timeout=5):
self._stopped = True self._stopped = True
self.join(timeout) self.join(timeout)