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' );