[Bps-public-commit] Prophet - A disconnected, replicated p2p database branch, master, updated. 19b307b4cb513b6a6b9807508ef1782dde144115

jesse jesse at bestpractical.com
Sat Jan 31 01:49:29 EST 2009


The branch, master has been updated
       via  19b307b4cb513b6a6b9807508ef1782dde144115 (commit)
      from  adb7cb214f574ce279e80ae72d075cb17959f980 (commit)

Summary of changes:
 lib/Prophet/Replica/sqlite.pm |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 19b307b4cb513b6a6b9807508ef1782dde144115
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sat Jan 31 01:48:32 2009 -0500

    Silence warnings when closing sqlite handles if they weren't open to begin with

diff --git a/lib/Prophet/Replica/sqlite.pm b/lib/Prophet/Replica/sqlite.pm
index 2a3681d..bf51ad4 100644
--- a/lib/Prophet/Replica/sqlite.pm
+++ b/lib/Prophet/Replica/sqlite.pm
@@ -822,7 +822,12 @@ sub _do_db_upgrades {
 }
 
 
-sub DEMOLISH { shift->dbh->disconnect }
+sub DEMOLISH {
+    my $self = shift;
+    $self->dbh->disconnect if ( $self->dbh );
+}
+
+
 __PACKAGE__->meta->make_immutable;
 no Moose;
 

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list