Skip to content

Commit

Permalink
(reactor) prevent unintended release of reactor loop
Browse files Browse the repository at this point in the history
loop delete must be manually called - not something that is typically
required
  • Loading branch information
Stephen von Takach committed Jun 13, 2018
1 parent 5a6a44e commit 3c781fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/libuv/reactor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def new(&blk)
#
# @return [::Libuv::Reactor]
def create(pointer)
allocate.tap { |i| i.send(:initialize, FFI::AutoPointer.new(pointer, ::Libuv::Ext.method(:loop_delete))) }
allocate.tap { |i| i.send(:initialize, pointer) }
end

# Checks for the existence of a reactor on the current thread
Expand Down

0 comments on commit 3c781fa

Please sign in to comment.