[前][次][番号順一覧][スレッド一覧]

ruby-changes:8722

From: seki <ko1@a...>
Date: Wed, 19 Nov 2008 01:24:49 +0900 (JST)
Subject: [ruby-changes:8722] Ruby:r20257 (trunk): fixed NoMethodError problem from NaHi .

seki	2008-11-19 01:24:22 +0900 (Wed, 19 Nov 2008)

  New Revision: 20257

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20257

  Log:
    fixed NoMethodError problem from NaHi [ruby-dev:37110].

  Modified files:
    trunk/ChangeLog
    trunk/lib/drb/drb.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20256)
+++ ChangeLog	(revision 20257)
@@ -1,3 +1,8 @@
+Wed Nov 19 01:10:52 2008  Masatoshi SEKI  <m_seki@m...>
+
+	* lib/drb/drb.rb (DRbConn::alive?): fixed NoMethodError problem
+	  from NaHi [ruby-dev:37110].
+
 Wed Nov 19 01:05:26 2008  Yusuke Endoh  <mame@t...>
 
 	* cont.c (cont_mark, cont_capture, cont_restore_1): speed up
Index: lib/drb/drb.rb
===================================================================
--- lib/drb/drb.rb	(revision 20256)
+++ lib/drb/drb.rb	(revision 20257)
@@ -1208,6 +1208,7 @@
     end
 
     def alive?  # :nodoc:
+      return false unless @protocol
       @protocol.alive?
     end
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]