summaryrefslogtreecommitdiff
path: root/lib/finalize.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/finalize.rb')
-rw-r--r--lib/finalize.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/finalize.rb b/lib/finalize.rb
index a07e67d..3cf79ff 100644
--- a/lib/finalize.rb
+++ b/lib/finalize.rb
@@ -157,7 +157,7 @@ module Finalizer
# method to call finalize_* safely.
def safe
old_status = Thread.critical
- Thread.critical = TRUE
+ Thread.critical = true
ObjectSpace.remove_finalizer(@proc)
yield
ObjectSpace.add_finalizer(@proc)