]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiMailSync.pm
index: optimize after all SQLite DB commits
[public-inbox.git] / lib / PublicInbox / LeiMailSync.pm
index c6cd1bc58d0ae0b5d676b56288680f8dbb5c0eda..f7e37ad9ca808ce3b618d651366c3e2a0e28aeb3 100644 (file)
@@ -48,7 +48,7 @@ sub lms_pause {
        my ($self) = @_;
        $self->{fmap} = {};
        my $dbh = delete $self->{dbh};
-       $dbh->do('PRAGMA optimize') if $dbh;
+       eval { $dbh->do('PRAGMA optimize') } if $dbh;
 }
 
 sub create_tables {