Skip to content

Commit

Permalink
$sth->{Active} may throw during destruction >.<
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Oct 26, 2010
1 parent cf48da0 commit 380b6ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/DBIx/Class/Storage/DBI/Cursor.pm
Expand Up @@ -179,7 +179,7 @@ sub _check_dbh_gen {
sub DESTROY {
# None of the reasons this would die matter if we're in DESTROY anyways
if (my $sth = $_[0]->sth) {
try { $sth->finish } if $sth->{Active};
try { $sth->finish } if $sth->FETCH('Active');
}
}

Expand Down

0 comments on commit 380b6ea

Please sign in to comment.