Wait for server threads to finish

This commit is contained in:
Nobuyoshi Nakada 2024-07-29 17:27:47 +09:00 committed by Hiroshi SHIBATA
parent 0afbc73b2a
commit 30f57637ee
Notes: git 2024-07-29 23:34:01 +00:00

View File

@ -41,8 +41,9 @@ module TestNetHTTPUtils
end
def shutdown
@thread.kill if @thread
@server.close if @server
@thread&.kill
@server&.close
@thread&.join
end
def mount(path, proc)