je kunt niet returnen uit een thread, dus Thread.current.exit
This commit is contained in:
parent
007775c576
commit
4381df3cf9
1 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/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$
|
# $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
|
# XXX if there is a yenc problem I want the data so I can research it
|
||||||
output_data(tsubj, 0600, "YencProblem", tbody)
|
output_data(tsubj, 0600, "YencProblem", tbody)
|
||||||
# XXX return succes even though it's not true
|
# XXX return succes even though it's not true
|
||||||
return true
|
Thread.current.exit
|
||||||
rescue PermError
|
rescue PermError
|
||||||
print "#{$!}\n"
|
print "#{$!}\n"
|
||||||
print " Skipping article...\n"
|
print " Skipping article...\n"
|
||||||
return false
|
Thread.current.exit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if tmode == false
|
if tmode == false
|
||||||
print " Decoding failed skipping article...\n"
|
print " Decoding failed skipping article...\n"
|
||||||
return false
|
Thread.current.exit
|
||||||
end
|
end
|
||||||
|
|
||||||
if tfile
|
if tfile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue