Skip to content

Commit

Permalink
Wait for server threads to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu authored and hsbt committed Aug 5, 2024
1 parent d22211d commit e3285bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/net/http/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ def run(socket)
end

def shutdown
@thread.kill if @thread
@server.close if @server
@thread&.kill
@server&.close
@thread&.join
end

def mount(path, proc)
Expand Down

0 comments on commit e3285bd

Please sign in to comment.