summaryrefslogtreecommitdiff
path: root/test/xmlrpc
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 11:26:58 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-03 11:26:58 +0000
commit438a91c0720ac840dedb64085a8c906f855c7422 (patch)
treeb60c44cbac4e640a520c7a1c9f456a4ec97b2bf9 /test/xmlrpc
parent3b320b782f3003b5ab1b026f5c74f3e5a1c2d24a (diff)
* test/xmlrpc/webrick_testing.rb (stop_server): Don't try to shutdown
the server if the server is not started. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/xmlrpc')
-rw-r--r--test/xmlrpc/webrick_testing.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index 300f690..e50a94e 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -34,6 +34,7 @@ module WEBrick_Testing
end
def stop_server
+ return if !defined?(@__server) || !@__server
Timeout.timeout(5) {
@__server.shutdown
Thread.pass while @__started # wait until the server is down