[Groonga-commit] droonga/droonga-client-ruby at fc2bdf0 [master] coolio: ignore close on connection failure

Back to archive index

Kouhei Sutou null+****@clear*****
Thu May 15 17:45:20 JST 2014


Kouhei Sutou	2014-05-15 17:45:20 +0900 (Thu, 15 May 2014)

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

  Message:
    coolio: ignore close on connection failure

  Modified files:
    lib/droonga/client/connection/droonga-protocol/coolio.rb

  Modified: lib/droonga/client/connection/droonga-protocol/coolio.rb (+5 -0)
===================================================================
--- lib/droonga/client/connection/droonga-protocol/coolio.rb    2014-05-02 18:13:14 +0900 (2e439f5)
+++ lib/droonga/client/connection/droonga-protocol/coolio.rb    2014-05-15 17:45:20 +0900 (d88cc4c)
@@ -54,6 +54,11 @@ module Droonga
               @buffer = []
             end
 
+            def close
+              return if @failed_to_connect
+              super
+            end
+
             def send(tag, data, &on_error)
               if @failed_to_connect
                 on_error.call(data)
-------------- next part --------------
HTML����������������������������...
Download 



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