diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2005-09-19 12:56:02 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2005-09-19 12:56:02 +0000 |
commit | 3650aec01560a0a62873de0c89ad011344dca170 (patch) | |
tree | 54db2afe60a4f9296af9c81625ef39f5a03cdf14 /cpp/src/slice2cpp/Gen.cpp | |
parent | Bug fixes (diff) | |
download | ice-3650aec01560a0a62873de0c89ad011344dca170.tar.bz2 ice-3650aec01560a0a62873de0c89ad011344dca170.tar.xz ice-3650aec01560a0a62873de0c89ad011344dca170.zip |
Bug 432 - unwanted OutgoingAync cleanup() if __response prompted retry.
Diffstat (limited to 'cpp/src/slice2cpp/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cpp/Gen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index 0691a80505c..930fee15337 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -4143,7 +4143,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) H << nl << "protected:"; H.inc(); H << sp; - H << nl << "virtual void __response(bool);"; + H << nl << "virtual bool __response(bool);"; H << eb << ';'; H << sp << nl << "typedef ::IceUtil::Handle< " << classScopedAMI << '_' << name << "> " << classNameAMI << '_' << name << "Ptr;"; @@ -4173,7 +4173,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "__send();"; C << eb; - C << sp << nl << "void" << nl << classScopedAMI.substr(2) << '_' << name << "::__response(bool __ok)"; + C << sp << nl << "bool" << nl << classScopedAMI.substr(2) << '_' << name << "::__response(bool __ok)"; C << sb; writeAllocateCode(C, outParams, ret); C << nl << "try"; @@ -4202,7 +4202,7 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << nl << "catch(const " << fixKwd((*i)->scoped()) << "& __ex)"; C << sb; C << nl << "ice_exception(__ex);"; - C << nl << "return;"; + C << nl << "return false;"; C << eb; } C << nl << "catch(const ::Ice::UserException& __ex)"; @@ -4219,10 +4219,10 @@ Slice::Gen::AsyncVisitor::visitOperation(const OperationPtr& p) C << eb; C << nl << "catch(const ::Ice::LocalException& __ex)"; C << sb; - C << nl << "__finished(__ex);"; - C << nl << "return;"; + C << nl << "return __finished(__ex);"; C << eb; C << nl << "ice_response" << spar << args << epar << ';'; + C << nl << "return false;"; C << eb; } |