summaryrefslogtreecommitdiff
path: root/lib/rbot/ircsocket.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-06-11 16:26:09 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-06-11 16:26:09 +0200
commit2a3bc07d139593f1f57e23cfbd08602d29a8b26c (patch)
tree5120a20bd222d12d15b960862b853a196add997a /lib/rbot/ircsocket.rb
parent1fbb090ea91ab20916b3698d8afd6e300673b826 (diff)
Saner treatment for connect errors
Rather than raising changing the message (a message that would not be displayed anyway), display the (composed) error message and then reraise without further changes.
Diffstat (limited to 'lib/rbot/ircsocket.rb')
-rw-r--r--lib/rbot/ircsocket.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb
index 652b1f6d..4c11094b 100644
--- a/lib/rbot/ircsocket.rb
+++ b/lib/rbot/ircsocket.rb
@@ -401,6 +401,7 @@ module Irc
error "error while shutting down: #{e.pretty_inspect}"
end
@sock = nil
+ @server_uri = nil
@sendq.clear
end