Give time to terminate
This commit is contained in:
parent
059202695c
commit
51b384cc07
@ -78,6 +78,7 @@ def webserver(dir='/tmp/htdocs', host='localhost', port=9999):
|
|||||||
finally:
|
finally:
|
||||||
# Close the server
|
# Close the server
|
||||||
p.terminate()
|
p.terminate()
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user