forked from aniani/vim
patch 7.4.1370
Problem: The Python test script may keep on running. Solution: Join the threads. (Yasuhiro Matsumoto)
This commit is contained in:
@@ -192,3 +192,8 @@ if __name__ == "__main__":
|
||||
|
||||
# Main thread terminates, but the server continues running
|
||||
# until server.shutdown() is called.
|
||||
try:
|
||||
while server_thread.isAlive():
|
||||
server_thread.join(1)
|
||||
except (KeyboardInterrupt, SystemExit):
|
||||
server.shutdown()
|
||||
|
Reference in New Issue
Block a user