summaryrefslogtreecommitdiff
path: root/lib/rbot/timer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/timer.rb')
-rw-r--r--lib/rbot/timer.rb5
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 }