Move where we do the shutdown.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 1 May 2013 15:30:06 +0000 (11:30 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 1 May 2013 15:58:23 +0000 (11:58 -0400)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Record.pm

index f38c582..8673d08 100644 (file)
@@ -535,9 +535,9 @@ sub added_content_stage2 {
                     }
                 }
             }
-            # To avoid a lot of hanging connections.
-            $req->shutdown(2);
         }
+        # To avoid a lot of hanging connections.
+        $content->{request}->shutdown(2);
     }
 }