spamassassin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j.@apache.org
Subject svn commit: rev 6780 - incubator/spamassassin/trunk/lib/Mail/SpamAssassin
Date Thu, 19 Feb 2004 18:45:25 GMT
Author: jm
Date: Thu Feb 19 10:45:24 2004
New Revision: 6780

Modified:
   incubator/spamassassin/trunk/lib/Mail/SpamAssassin/MsgContainer.pm
Log:
oops.  make sure finish_metadata can be called multiple times

Modified: incubator/spamassassin/trunk/lib/Mail/SpamAssassin/MsgContainer.pm
==============================================================================
--- incubator/spamassassin/trunk/lib/Mail/SpamAssassin/MsgContainer.pm	(original)
+++ incubator/spamassassin/trunk/lib/Mail/SpamAssassin/MsgContainer.pm	Thu Feb 19 10:45:24
2004
@@ -667,8 +667,10 @@
 
 sub finish_metadata {
   my ($self) = @_;
-  $self->{metadata}->finish();
-  delete $self->{metadata};
+  if ($self->{metadata}) {
+    $self->{metadata}->finish();
+    delete $self->{metadata};
+  }
 }
 
 =item finish()
@@ -679,7 +681,7 @@
 
 sub finish {
   my ($self) = @_;
-  $self->{metadata}->finish();
+  $self->finish_metadata();
 }
 
 # ---------------------------------------------------------------------------

Mime
View raw message