summaryrefslogtreecommitdiff
path: root/cpp/src/slice2javae/Gen.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-02-20 12:50:40 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-02-20 12:50:40 +0000
commit1d723e1927a7be26f242a6a0b58dac88b529f18c (patch)
tree0a69fe530968c45cbb1d785e23ef8a50dc5d0ce3 /cpp/src/slice2javae/Gen.cpp
parentMore socket timeout fixes (diff)
downloadice-1d723e1927a7be26f242a6a0b58dac88b529f18c.tar.bz2
ice-1d723e1927a7be26f242a6a0b58dac88b529f18c.tar.xz
ice-1d723e1927a7be26f242a6a0b58dac88b529f18c.zip
Fix thread safety issue
Diffstat (limited to 'cpp/src/slice2javae/Gen.cpp')
-rw-r--r--cpp/src/slice2javae/Gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpp/src/slice2javae/Gen.cpp b/cpp/src/slice2javae/Gen.cpp
index 9aa17daedda..8a6baaba8ef 100644
--- a/cpp/src/slice2javae/Gen.cpp
+++ b/cpp/src/slice2javae/Gen.cpp
@@ -2212,8 +2212,8 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p)
{
out << nl << "__checkTwowayOnly(\"" << opName << "\");";
}
- out << nl << "__checkConnection();";
- out << nl << "IceInternal.Outgoing __og = _connection.getOutgoing(_reference, \"" << op->name() << "\", "
+ out << nl << "Ice.Connection __connection = ice_connection();";
+ out << nl << "IceInternal.Outgoing __og = __connection.getOutgoing(_reference, \"" << op->name() << "\", "
<< sliceModeToIceMode(op) << ", __ctx);";
out << nl << "try";
out << sb;
@@ -2280,7 +2280,7 @@ Slice::Gen::HelperVisitor::visitClassDefStart(const ClassDefPtr& p)
out << eb;
out << nl << "finally";
out << sb;
- out << nl << "_connection.reclaimOutgoing(__og);";
+ out << nl << "__connection.reclaimOutgoing(__og);";
out << eb;
if(!ret)
{