diff options
Diffstat (limited to 'TAO/tao/Asynch_Invocation.i')
-rw-r--r-- | TAO/tao/Asynch_Invocation.i | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/TAO/tao/Asynch_Invocation.i b/TAO/tao/Asynch_Invocation.i index 3b282d42c5f..657dd6675af 100644 --- a/TAO/tao/Asynch_Invocation.i +++ b/TAO/tao/Asynch_Invocation.i @@ -42,23 +42,15 @@ TAO_GIOP_Twoway_Asynch_Invocation::TAO_GIOP_Twoway_Asynch_Invocation ( argument_flag, orb_core) { - // If the reply handler is nil, we do not create a reply dispatcher. - // The ORB will drop replies to which it cannot associate a reply - // dispatcher. - if (!CORBA::is_nil (reply_handler_ptr)) - { - // New reply dispatcher on the heap, because - // we will go out of scope and hand over the - // reply dispatcher to the ORB. - - // @@Michael: What does following comment mean? - // So this->rd_ is 0, because we do not need to - // hold a pointer to it. - ACE_NEW (this->rd_, - TAO_Asynch_Reply_Dispatcher (reply_handler_skel, - reply_handler_ptr, - orb_core)); - } + // New reply dispatcher on the heap, because + // we will go out of scope and hand over the + // reply dispatcher to the ORB. + // So this->rd_ is 0, because we do not need to + // hold a pointer to it. + ACE_NEW (this->rd_, + TAO_Asynch_Reply_Dispatcher (reply_handler_skel, + reply_handler_ptr, + orb_core)); } #endif /* (TAO_HAS_AMI_CALLBACK == 1) || (TAO_HAS_AMI_POLLER == 1) == 0 */ |