From: erickson Date: Mon, 14 Jun 2010 13:06:50 +0000 (+0000) Subject: avoid sending unnecessary disconnects to cstore X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d0cfb30d5b7a1a5d2541cc657d953ab6663d9e29;p=evergreen%2Fbjwebb.git avoid sending unnecessary disconnects to cstore git-svn-id: svn://svn.open-ils.org/ILS/trunk@16697 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm index 66345b0df..89ccfa6c1 100644 --- a/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm +++ b/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm @@ -295,7 +295,9 @@ sub rollback { sub disconnect { my $self = shift; - $self->session->disconnect if $self->{session}; + $self->session->disconnect if + $self->{session} and + $self->{session}->state == OpenSRF::AppSession::CONNECTED(); delete $self->{session}; }