disconnect before waiting for decodes; avoid server disconnect
This commit is contained in:
parent
cd03bf9469
commit
98d543ebd4
2 changed files with 10 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
# $Dwarf: article.rb,v 1.94 2004/11/21 14:21:03 ward Exp $
|
# $Dwarf: article.rb,v 1.95 2005/01/30 14:24:13 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -786,7 +786,7 @@ def printerr(server)
|
||||||
print "Error: #{$!}\n"
|
print "Error: #{$!}\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def quit
|
def disconnect
|
||||||
# just testing if these should be reset...
|
# just testing if these should be reset...
|
||||||
@messageinfo = []
|
@messageinfo = []
|
||||||
|
|
||||||
|
|
@ -798,6 +798,12 @@ def quit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def quit
|
||||||
|
# just testing if these should be reset...
|
||||||
|
@messageinfo = []
|
||||||
|
disconnect
|
||||||
|
end
|
||||||
|
|
||||||
private :ward_sort
|
private :ward_sort
|
||||||
|
|
||||||
end # class
|
end # class
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/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$
|
# $Source$
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
@ -705,6 +705,7 @@ def main
|
||||||
|
|
||||||
# hier wachten op evt. threads...
|
# hier wachten op evt. threads...
|
||||||
if @decode_threads
|
if @decode_threads
|
||||||
|
@articles.disconnect
|
||||||
puts "Waiting for decode threads..."
|
puts "Waiting for decode threads..."
|
||||||
@decode_threads.each{|thr| thr.join}
|
@decode_threads.each{|thr| thr.join}
|
||||||
puts "Decode threads all done"
|
puts "Decode threads all done"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue