[open-ils-commits] r16697 - trunk/Open-ILS/src/perlmods/OpenILS/Utils (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jun 14 09:06:51 EDT 2010
Author: erickson
Date: 2010-06-14 09:06:50 -0400 (Mon, 14 Jun 2010)
New Revision: 16697
Modified:
trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
Log:
avoid sending unnecessary disconnects to cstore
Modified: trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2010-06-13 17:15:28 UTC (rev 16696)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Utils/CStoreEditor.pm 2010-06-14 13:06:50 UTC (rev 16697)
@@ -295,7 +295,9 @@
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};
}
More information about the open-ils-commits
mailing list