diff options
Diffstat (limited to 'ext/tk/lib/tkafter.rb')
-rw-r--r-- | ext/tk/lib/tkafter.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tkafter.rb b/ext/tk/lib/tkafter.rb index b24d6c72d3..eddfc16f63 100644 --- a/ext/tk/lib/tkafter.rb +++ b/ext/tk/lib/tkafter.rb @@ -34,7 +34,7 @@ class TkTimer begin ex_obj.cb_call rescue Exception - Tk_CBTBL[obj_id] = nil + ex_obj.cancel "" end end @@ -143,6 +143,7 @@ class TkTimer set_procs(*args) if args != [] @running = false + @in_callback = false end attr :after_id |