Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/tdiary.rb b/tdiary.rb
- index e1808c7..3f04184 100644
- --- a/tdiary.rb
- +++ b/tdiary.rb
- @@ -106,15 +106,14 @@ end
- =begin
- == Safe module
- =end
- -require 'thread'
- module Safe
- def safe( level = 4 )
- result = nil
- if $SAFE < level then
- - Thread.start {
- + Proc.new {
- $SAFE = level
- result = yield
- - }.join
- + }.call
- else
- result = yield
- end
Add Comment
Please, Sign In to add comment