diff options
Diffstat (limited to 'cpp/src/Ice/Outgoing.cpp')
-rw-r--r-- | cpp/src/Ice/Outgoing.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<IceUtil::Mutex>::Lock sync(_monitor); @@ -356,11 +361,6 @@ IceInternal::Outgoing::sent(bool notify) // _sent = true; } - - if(_handler->getReference()->getMode() != Reference::ModeTwoway) - { - _remoteObserver.detach(); - } } void |