disconnect before waiting for decodes; avoid server disconnect

This commit is contained in:
Ward Wouts 2005-01-30 18:43:17 +00:00
parent cd03bf9469
commit 98d543ebd4
2 changed files with 10 additions and 3 deletions

View file

@ -1,6 +1,6 @@
#!/usr/local/bin/ruby -w
# $Dwarf: ripnews.rb,v 1.89 2005/01/30 14:24:47 ward Exp $
# $Dwarf: ripnews.rb,v 1.90 2005/01/30 14:47:00 ward Exp $
# $Source$
#
@ -705,6 +705,7 @@ def main
# hier wachten op evt. threads...
if @decode_threads
@articles.disconnect
puts "Waiting for decode threads..."
@decode_threads.each{|thr| thr.join}
puts "Decode threads all done"