Guest User

Untitled

a guest
Mar 17th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. diff --git a/src/org/jruby/RubyThread.java b/src/org/jruby/RubyThread.java
  2. index a8a93f8..b6015b8 100644
  3. --- a/src/org/jruby/RubyThread.java
  4. +++ b/src/org/jruby/RubyThread.java
  5. @@ -780,7 +780,7 @@ public class RubyThread extends RubyObject {
  6.  
  7. SelectionKey key = selectable.register(currentSelector, SelectionKey.OP_ACCEPT);
  8.  
  9. - int result = currentSelector.select();
  10. + int result = currentSelector.select(100);
  11.  
  12. if (result == 1) {
  13. Set<SelectionKey> keySet = currentSelector.selectedKeys();
Add Comment
Please, Sign In to add comment