From b3e95b51dd021b3e491146e093a11e729c919f90 Mon Sep 17 00:00:00 2001 From: Bernard Normier Date: Wed, 10 Oct 2012 17:02:02 +0000 Subject: Fixed test/Ice/hold failure --- cpp/src/Ice/Outgoing.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/Ice/Outgoing.cpp b/cpp/src/Ice/Outgoing.cpp index e02e28063a4..44571200fdf 100644 --- a/cpp/src/Ice/Outgoing.cpp +++ b/cpp/src/Ice/Outgoing.cpp @@ -342,6 +342,11 @@ IceInternal::Outgoing::abort(const LocalException& ex) void IceInternal::Outgoing::sent(bool notify) { + if(_handler->getReference()->getMode() != Reference::ModeTwoway) + { + _remoteObserver.detach(); + } + if(notify) { IceUtil::Monitor::Lock sync(_monitor); @@ -356,11 +361,6 @@ IceInternal::Outgoing::sent(bool notify) // _sent = true; } - - if(_handler->getReference()->getMode() != Reference::ModeTwoway) - { - _remoteObserver.detach(); - } } void -- cgit v1.2.3