summaryrefslogtreecommitdiff
path: root/test/xmlrpc/webrick_testing.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/xmlrpc/webrick_testing.rb')
-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 300f690b64..e50a94ecdc 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