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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/xmlrpc/webrick_testing.rb b/test/xmlrpc/webrick_testing.rb
index 05c3340..4c0cf89 100644
--- a/test/xmlrpc/webrick_testing.rb
+++ b/test/xmlrpc/webrick_testing.rb
@@ -7,7 +7,7 @@ module WEBrick_Testing
end
def start_server(config={})
- raise "already started" if @__server
+ raise "already started" if defined?(@__server) && @__server
@__started = false
@__server_thread = Thread.new {