From 36b1f9e4ff50fdfadc900df1f75b82a07cc04300 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 8 Sep 2003 17:11:15 +0000 Subject: [PATCH] fixed bug where entry was deleted from within entry's callback --- src/libCom/misc/ipAddrToAsciiAsynchronous.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp b/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp index 3c75f0240..1135139e1 100644 --- a/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp +++ b/src/libCom/misc/ipAddrToAsciiAsynchronous.cpp @@ -273,8 +273,10 @@ void ipAddrToAsciiEnginePrivate::run () this->callbackInProgress = false; - this->pCurrent->pending = false; - this->pCurrent = 0; + if ( this->pCurrent ) { + this->pCurrent->pending = false; + this->pCurrent = 0; + } if ( this->cancelPendingCount ) { this->destructorBlockEvent.signal (); }