From 19f638094baa01b7a776cad39345aef167ff7f3e Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Fri, 23 Jan 2004 17:07:18 +0000 Subject: added sendMutex --- cpp/src/slice2cpp/Gen.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cpp/src/slice2cpp/Gen.cpp') diff --git a/cpp/src/slice2cpp/Gen.cpp b/cpp/src/slice2cpp/Gen.cpp index b2b7074b082..55728f17ef1 100644 --- a/cpp/src/slice2cpp/Gen.cpp +++ b/cpp/src/slice2cpp/Gen.cpp @@ -1264,10 +1264,8 @@ Slice::Gen::ProxyVisitor::visitOperation(const OperationPtr& p) C << sb; C << nl << "try"; C << sb; - if(p->returnsData()) - { - C << nl << "__checkTwowayOnly(\"" << p->name() << "\");"; - } + // Async requests may only be sent twoway. + C << nl << "__checkTwowayOnly(\"" << p->name() << "\");"; C << nl << "::IceInternal::Handle< ::IceDelegate::Ice::Object> __delBase = __getDelegate();"; C << nl << "::IceDelegate" << thisPointer << " __del = dynamic_cast< ::IceDelegate" << thisPointer << ">(__delBase.get());"; -- cgit v1.2.3