Skip to content

Commit

Permalink
Compatibility with older rubies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 16, 2018
1 parent e8c4699 commit 5452117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/async/wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(io, reactor = nil)
# Bind this wrapper to a different reactor. Assign nil to convert to an unbound wrapper (can be used from any reactor/task but with slightly increased overhead.)
# Binding to a reactor is purely a performance consideration. Generally, I don't like APIs that exist only due to optimisations. This is borderline, so consider this functionality semi-private.
def reactor= reactor
@monitor&.close
@monitor.close if @monitor

@reactor = reactor
@monitor = nil
Expand Down

0 comments on commit 5452117

Please sign in to comment.