From 696efbfb6ad3f40c313c17b22041e12c3196a7e9 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 28 Aug 2007 12:37:28 +0000 Subject: ircsocket: raise errors occurred while spooling so that bot is aware of them --- lib/rbot/ircsocket.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/rbot') diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index dcc501a3..c1bc3611 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -462,6 +462,7 @@ module Irc end rescue Exception => e error "Spooling failed: #{e.pretty_inspect}" + raise e end end end @@ -499,6 +500,7 @@ module Irc @rawsock = nil if @ssl @sock = nil @burst = 0 + @sendq.clear end private -- cgit v1.2.3