aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve/authentication.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve/authentication.rb')
-rw-r--r--lib/mauve/authentication.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/authentication.rb b/lib/mauve/authentication.rb
index f01fb5e..74c6780 100644
--- a/lib/mauve/authentication.rb
+++ b/lib/mauve/authentication.rb
@@ -77,12 +77,12 @@ module Mauve
## Not really needed.
def ping ()
begin
- MauveTimeout.timeout(@timeout) do
+ Timeout.timeout(@timeout) do
s = TCPSocket.open(@srv, @port)
s.close()
return true
end
- rescue MauveTimeout::Error => ex
+ rescue Timeout::Error => ex
return false
rescue => ex
return false