From 4381df3cf9cf4389c10eca6158d8bd5fefe28bb8 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Wed, 2 Feb 2005 12:25:49 +0000 Subject: [PATCH] je kunt niet returnen uit een thread, dus Thread.current.exit --- trunk/ripnews/ripnews.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index ac86371..a1c6d9e 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -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