Wait for server threads to finish
This commit is contained in:
parent
0afbc73b2a
commit
30f57637ee
Notes:
git
2024-07-29 23:34:01 +00:00
@ -41,8 +41,9 @@ module TestNetHTTPUtils
|
|||||||
end
|
end
|
||||||
|
|
||||||
def shutdown
|
def shutdown
|
||||||
@thread.kill if @thread
|
@thread&.kill
|
||||||
@server.close if @server
|
@server&.close
|
||||||
|
@thread&.join
|
||||||
end
|
end
|
||||||
|
|
||||||
def mount(path, proc)
|
def mount(path, proc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user