From d0cfb30d5b7a1a5d2541cc657d953ab6663d9e29 Mon Sep 17 00:00:00 2001 From: erickson Date: Mon, 14 Jun 2010 13:06:50 +0000 Subject: [PATCH] avoid sending unnecessary disconnects to cstore git-svn-id: svn://svn.open-ils.org/ILS/trunk@16697 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}; } -- 2.11.0