diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-09-15 11:44:07 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-09-15 11:44:07 +0200 |
commit | c96f6443b0cb282bebadbd3bc3bfb2f5139a6add (patch) | |
tree | d307dbcf7fbf686ea03713c93721cbca68e5f662 /lib/rbot/timer.rb | |
parent | 16c921257d38522fd2930b1ee8d52675f0d4f1e0 (diff) |
Better handling of akills and other form of disconnections
Diffstat (limited to 'lib/rbot/timer.rb')
-rw-r--r-- | lib/rbot/timer.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rbot/timer.rb b/lib/rbot/timer.rb index 8e2a6a4a..64b0ee43 100644 --- a/lib/rbot/timer.rb +++ b/lib/rbot/timer.rb @@ -214,7 +214,10 @@ class Timer end def stop - raise 'already stopped' unless @thread + unless @thread + warning 'trying to stop already stopped timer' + return + end debug "stopping timer #{self}..." @stopping = true self.synchronize { @tick.signal } |