We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f596b69 commit fb4e0f6Copy full SHA for fb4e0f6
1 file changed
lib/vault/client.rb
@@ -174,8 +174,10 @@ def pool
174
175
# Shutdown any open pool connections. Pool will be recreated upon next request.
176
def shutdown
177
- @nhp.shutdown()
178
- @nhp = nil
+ @lock.synchronize do
+ @nhp.shutdown()
179
+ @nhp = nil
180
+ end
181
end
182
183
# Creates and yields a new client object with the given token. This may be
0 commit comments