Navigation Menu

Skip to content

Commit

Permalink
Ensure shutdown sub command
Browse files Browse the repository at this point in the history
It causes a resource leak.
  • Loading branch information
kou committed Jun 26, 2014
1 parent 5348fbf commit 1f2a76d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/droonga/serf.rb
Expand Up @@ -69,12 +69,12 @@ def shutdown

def set_tag(key, value)
logger.trace("set_tag (#{key} = #{value})")
run("tags", "-set", "#{key}=#{value}")
run("tags", "-set", "#{key}=#{value}").shutdown
end

def delete_tag(key)
logger.trace("delete_tag (#{key})")
run("tags", "-delete", key)
run("tags", "-delete", key).shutdown
end

private
Expand Down

0 comments on commit 1f2a76d

Please sign in to comment.