Skip to content

Commit

Permalink
attempt to free handle unless it was free'd already
Browse files Browse the repository at this point in the history
  • Loading branch information
Bulat Shakirzyanov committed Jun 23, 2014
1 parent 75ba369 commit 732b2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uv/handle.rb
Expand Up @@ -6,7 +6,7 @@ class << self
def close(object_id, handle)
Proc.new do
Listener.undefine_callbacks(object_id)
UV.close(handle, UV.method(:free))
UV.close(handle, UV.method(:free)) unless handle.null?
end
end
end
Expand Down

0 comments on commit 732b2bf

Please sign in to comment.