Skip to content
Snippets Groups Projects
Commit b0fcb720 authored by developer23's avatar developer23
Browse files

ver 4.0.4.2

parent c871b700
No related merge requests found
...@@ -445,9 +445,10 @@ class GetHandler(BaseHTTPRequestHandler): ...@@ -445,9 +445,10 @@ class GetHandler(BaseHTTPRequestHandler):
elif f == 'x': elif f == 'x':
self.wfile.write("\nServer stopped !\nClose program !\n") self.wfile.write("\nServer stopped !\nClose program !\n")
shut_event.set() shut_event.set()
httpd.server_close() httpd.server_close()
httpd.shutdown()
if sys.platform.startswith('linux'): if sys.platform.startswith('linux'):
os.system('pkill -9 python') os.system('pkill -9 python')
os.kill(os.getpid(), signal.SIGINT) os.kill(os.getpid(), signal.SIGINT)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment