[Groonga-commit] droonga/droonga-client-ruby at 83b7d5f [master] Fix mismatched catch-throw

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu May 7 16:51:07 JST 2015


YUKI Hiroshi	2015-05-07 16:51:07 +0900 (Thu, 07 May 2015)

  New Revision: 83b7d5f940f7e31d2b330352d72a53429bb229c3
  https://github.com/droonga/droonga-client-ruby/commit/83b7d5f940f7e31d2b330352d72a53429bb229c3

  Message:
    Fix mismatched catch-throw

  Modified files:
    lib/droonga/client/connection/http.rb

  Modified: lib/droonga/client/connection/http.rb (+3 -3)
===================================================================
--- lib/droonga/client/connection/http.rb    2015-05-07 16:49:28 +0900 (862cdae)
+++ lib/droonga/client/connection/http.rb    2015-05-07 16:51:07 +0900 (9b33585)
@@ -86,8 +86,8 @@ module Droonga
               response.body
             end
           else
-            catch do |tag|
-              thread = Thread.new do
+            thread = Thread.new do
+              catch do |tag|
                 send(message, options) do |response|
                   begin
                     yield(response.body)
@@ -96,8 +96,8 @@ module Droonga
                   end
                 end
               end
-              Request.new(thread)
             end
+            Request.new(thread)
           end
         end
 
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index