mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
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
|
||||
|
||||
def shutdown
|
||||
@thread.kill if @thread
|
||||
@server.close if @server
|
||||
@thread&.kill
|
||||
@server&.close
|
||||
@thread&.join
|
||||
end
|
||||
|
||||
def mount(path, proc)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user