lib/plezi/eventmachine/timers.rb in plezi-0.8.5 vs lib/plezi/eventmachine/timers.rb in plezi-0.8.6
- old
+ new
@@ -58,10 +58,10 @@
def fire_timers
TIMERS_LOCK.synchronize { time = Time.now; TIMERS.delete_if {|t| t.done? time} }
end
# clears all timers
def clear_timers
- TIMERS_LOCK.synchronize { TIMERS.clear }
+ TIMERS.clear
end
end
module_function
\ No newline at end of file