From 3d09c87ab5db304ad797795d6f0d19e1d12e3765 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 3 Apr 2008 20:59:51 +0000 Subject: [PATCH] * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and @n_bytes as well. [ruby-core:16144] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/net/pop.rb | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index e455883a46..7b7fb7d6ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 4 05:57:11 2008 Yukihiro Matsumoto + + * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and + @n_bytes as well. [ruby-core:16144] + Fri Apr 4 00:42:26 2008 Yukihiro Matsumoto * bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242] diff --git a/lib/net/pop.rb b/lib/net/pop.rb index cbe5630271..1562f90833 100644 --- a/lib/net/pop.rb +++ b/lib/net/pop.rb @@ -577,6 +577,8 @@ module Net def do_finish @mails = nil + @n_mails = nil + @n_bytes = nil @command.quit if @command ensure @started = false