THRIFT-1193. rb: Potential infinite loop in nonblocking_server

Patch: Ilya Maykov

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1133593 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/rb/lib/thrift/server/nonblocking_server.rb b/lib/rb/lib/thrift/server/nonblocking_server.rb
index 911d6d5..740f341 100644
--- a/lib/rb/lib/thrift/server/nonblocking_server.rb
+++ b/lib/rb/lib/thrift/server/nonblocking_server.rb
@@ -49,7 +49,7 @@
           rescue Errno::EBADF => e
             # In Ruby 1.9, calling @server_transport.close in shutdown paths causes the select() to raise an
             # Errno::EBADF. If this happens, ignore it and retry the loop.
-            next
+            break
           end
           next if rd.nil?
           socket = @server_transport.accept