summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index fc6fec77d04..72e60d10559 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -631,7 +631,8 @@ IceInternal::FixedReference::getConnection(const GetConnectionCallbackPtr& callb
try
{
bool compress;
- callback->setConnection(getConnection(compress), compress);
+ ConnectionIPtr connection = getConnection(compress);
+ callback->setConnection(connection, compress);
}
catch(const Ice::LocalException& ex)
{