[Mungo-devel] [mungo commit] r41 - trunk/lib

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Tue Sep 16 17:06:33 EDT 2008


Author: jesus
Date: 2008-09-16 17:06:33 -0400 (Tue, 16 Sep 2008)
New Revision: 41

Modified:
   trunk/lib/Mungo.pm
Log:
if these things die, then the response finish won't run which is 'uber-bad'.  Put them in the eval so they to are exception handled.  fixes #14

Modified: trunk/lib/Mungo.pm
===================================================================
--- trunk/lib/Mungo.pm	2008-07-21 15:35:30 UTC (rev 40)
+++ trunk/lib/Mungo.pm	2008-09-16 21:06:33 UTC (rev 41)
@@ -225,11 +225,11 @@
 
   $self = $self->new($r) unless(ref $self);
   $self->Response()->start();
-  $main::Request = $self->Request();
-  $main::Response = $self->Response();
-  $main::Server = $self->Server();
   local $SIG{__DIE__} = \&Mungo::MungoDie;
   eval {
+    $main::Request = $self->Request();
+    $main::Response = $self->Response();
+    $main::Server = $self->Server();
     $self->Response()->Include($r->filename);
   };
   if($@) {



More information about the Mungo-devel mailing list