diff options
author | Phil Mesnier <mesnier_p@ociweb.com> | 2006-10-27 21:45:30 +0000 |
---|---|---|
committer | Phil Mesnier <mesnier_p@ociweb.com> | 2006-10-27 21:45:30 +0000 |
commit | b0a0c383ba4cc3000c033b7c56e34b96ba65fedc (patch) | |
tree | cd859f0a21a22e257a34ee26b2a13cecaeff59b5 /ACE/ace/TP_Reactor.inl | |
parent | 2777497d0fa7140ac2c6e268855cd7e57f6be952 (diff) | |
download | ATCD-b0a0c383ba4cc3000c033b7c56e34b96ba65fedc.tar.gz |
Fri Oct 27 21:41:25 UTC 2006 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'ACE/ace/TP_Reactor.inl')
-rw-r--r-- | ACE/ace/TP_Reactor.inl | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/ACE/ace/TP_Reactor.inl b/ACE/ace/TP_Reactor.inl index 8e38e339c32..33f3fbe2a4c 100644 --- a/ACE/ace/TP_Reactor.inl +++ b/ACE/ace/TP_Reactor.inl @@ -32,10 +32,15 @@ ACE_EH_Dispatch_Info::set (ACE_HANDLE handle, this->event_handler_ = event_handler; this->mask_ = mask; this->callback_ = callback; - this->resume_flag_ = event_handler->resume_handler (); - this->reference_counting_required_ = - (event_handler_->reference_counting_policy ().value () == - ACE_Event_Handler::Reference_Counting_Policy::ENABLED); + if (event_handler_) + { + this->resume_flag_ = event_handler->resume_handler (); + this->reference_counting_required_ = + (event_handler_->reference_counting_policy ().value () == + ACE_Event_Handler::Reference_Counting_Policy::ENABLED); + } + else + this->dispatch_ = false; } ACE_INLINE bool |