Fix crash during clock updates.
commit03c6867f5d2aa3000f9c787174e7dab29e5a604e
authorPaolo Capriotti <p.capriotti@gmail.com>
Fri, 3 Jul 2009 15:04:58 +0000 (3 17:04 +0200)
committerPaolo Capriotti <p.capriotti@gmail.com>
Fri, 3 Jul 2009 15:05:46 +0000 (3 17:05 +0200)
tree2544c5d67b215926d2305f655a3857794c8899f1
parent8e40aa11d9e0a134d13a5ee040a52d18b02c3d72
Fix crash during clock updates.

If a clock update caused the time to be set to 0, a crash occurred at the next
tick if no byoyomi was set. Fixed by stopping the timer when @main <= 0.
lib/clock.rb