summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/oxidized/input/telnet.rb7
-rw-r--r--oxidized.gemspec2
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/oxidized/input/telnet.rb b/lib/oxidized/input/telnet.rb
index 2da459e..09c3df9 100644
--- a/lib/oxidized/input/telnet.rb
+++ b/lib/oxidized/input/telnet.rb
@@ -39,8 +39,11 @@ module Oxidized
end
def disconnect
- @pre_logout.each { |command| cmd(command, nil) }
- @telnet.close
+ begin
+ @pre_logout.each { |command| cmd(command, nil) }
+ @telnet.close
+ rescue Errno::ECONNRESET
+ end
end
def username re=/^(Username|login)/
diff --git a/oxidized.gemspec b/oxidized.gemspec
index a1554f9..da255d6 100644
--- a/oxidized.gemspec
+++ b/oxidized.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = 'oxidized'
- s.version = '0.0.3'
+ s.version = '0.0.4'
s.platform = Gem::Platform::RUBY
s.authors = [ 'Saku Ytti' ]
s.email = %w( saku@ytti.fi )