ruby: unregister onupdate callback on exception

develop
jj 2012-10-17 14:40:28 +02:00
parent c089534f73
commit ffe70e9ee7
1 changed files with 1 additions and 0 deletions

@ -48,6 +48,7 @@ module DFHack
end
end
rescue
df.onupdate_unregister self
puts_err "onupdate cb #$!", $!.backtrace
end