Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[ljcom] r10966: LJSUP-9157: Self promo

Committer: gariev
LJSUP-9157: Self promo

U   trunk/cgi-bin/LJ/Pay/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-06 08:11:56 UTC (rev 10965)
+++ trunk/cgi-bin/LJ/Pay/SelfPromo.pm	2011-09-06 12:04:44 UTC (rev 10966)
@@ -698,6 +698,10 @@
 
 sub DESTROY {
     my ($self) = @_;
+    
+    ## warning: this code may be called during exception "stack unwind" step.
+    ## if original exception ($@) is not saved, it will be lost.
+    local $@;
 
     LJ::release_lock( LJ::get_db_writer(), 'global', 'selfpromo' );
 

Tags: gariev, ljcom, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments