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

ruby-changes:14866

From: akr <ko1@a...>
Date: Tue, 23 Feb 2010 20:42:37 +0900 (JST)
Subject: [ruby-changes:14866] Ruby:r26733 (trunk): call unix_server.close only if unix_server is not nil.

akr	2010-02-23 20:41:44 +0900 (Tue, 23 Feb 2010)

  New Revision: 26733

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

  Log:
    call unix_server.close only if unix_server is not nil.

  Modified files:
    trunk/test/socket/test_socket.rb

Index: test/socket/test_socket.rb
===================================================================
--- test/socket/test_socket.rb	(revision 26732)
+++ test/socket/test_socket.rb	(revision 26733)
@@ -191,7 +191,7 @@
           assert_equal(clients.length, accepted.length)
         ensure
           tcp_servers.each {|s| s.close if !s.closed?  }
-          unix_server.close if !unix_server.closed?
+          unix_server.close if unix_server && !unix_server.closed?
           clients.each {|s| s.close if !s.closed?  }
           accepted.each {|s| s.close if !s.closed?  }
         end

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

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