Skip to content

Commit

Permalink
Don't invoke monitor.close after related IO has already been closed.
Browse files Browse the repository at this point in the history
It breaks in jruby.
  • Loading branch information
ioquatix committed Jan 9, 2019
1 parent 439a3b5 commit c24bc62
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions spec/support/selectable_examples.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@
end

readable_subject.close
monitor.close
end

it "keeps readiness after the selectable has been closed" do
Expand All @@ -80,7 +79,5 @@
readable_subject.close
expect(m.readiness).to eq(:rw)
end

monitor.close
end
end

0 comments on commit c24bc62

Please sign in to comment.