[interchange] Fix very slow redirects from within Autoload (RT #342).

Stefan Hornburg <[email protected]>
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit d93bd905d2e3d0ef69a961442a11995a57b2d6cb
Author: Stefan Hornburg (Racke) <[email protected]>
Date:   Tue Jan 4 19:25:44 2011 -0500

    Fix very slow redirects from within Autoload (RT #342).

 lib/Vend/Dispatch.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/lib/Vend/Dispatch.pm b/lib/Vend/Dispatch.pm
index d19a495..5e51762 100644
--- a/lib/Vend/Dispatch.pm
+++ b/lib/Vend/Dispatch.pm
@@ -1667,7 +1667,10 @@ EOF
 
 	for my $routine (@{$Vend::Cfg->{DispatchRoutines}}) {
 		$routine->();
-		return if $Vend::Sent;
+		if ($Vend::Sent) {
+			close_cat();
+			return;
+		}
 	}
 #show_times("end DispatchRoutines") if $Global::ShowTimes;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.