From 88140f9116118e0df520efdbcd66dd08b5d994cf Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 13 Dec 1996 00:08:35 +0000 Subject: [PATCH] dont unlock after destroy --- src/cas/generic/casAsyncIOI.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/cas/generic/casAsyncIOI.cc b/src/cas/generic/casAsyncIOI.cc index a017ee7fa..cd12d65fb 100644 --- a/src/cas/generic/casAsyncIOI.cc +++ b/src/cas/generic/casAsyncIOI.cc @@ -29,6 +29,9 @@ * * History * $Log$ + * Revision 1.4 1996/11/02 00:53:58 jhill + * many improvements + * * */ @@ -212,18 +215,24 @@ int casAsyncIOI::readOP() // void casAsyncIOI::destroyIfReadOP() { + casCoreClient &client = this->client; + // // client lock used because this object's // lock may be destroyed // - this->client.osiLock(); + client.osiLock(); if (this->readOP()) { this->serverDelete = TRUE; (*this)->destroy(); } - this->client.osiUnlock(); + // + // NO REF TO THIS OBJECT BELOW HERE + // BECAUSE OF THE DELETE ABOVE + // + client.osiUnlock(); } //