je kunt niet returnen uit een thread, dus Thread.current.exit

This commit is contained in:
Ward Wouts 2005-02-02 12:25:49 +00:00
parent 007775c576
commit 4381df3cf9

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.97 2005/02/02 09:25:12 ward Exp $
# $Dwarf: ripnews.rb,v 1.98 2005/02/02 10:27:58 ward Exp $
# $Source$
#
@ -444,16 +444,16 @@ def get_multi(subj, group)
# XXX if there is a yenc problem I want the data so I can research it
output_data(tsubj, 0600, "YencProblem", tbody)
# XXX return succes even though it's not true
return true
Thread.current.exit
rescue PermError
print "#{$!}\n"
print " Skipping article...\n"
return false
Thread.current.exit
end
end
if tmode == false
print " Decoding failed skipping article...\n"
return false
Thread.current.exit
end
if tfile