summaryrefslogtreecommitdiff
path: root/ace/Acceptor.cpp
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-08 21:51:17 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-09-08 21:51:17 +0000
commit93df2c1a45236a94e566b7d15ebcb9d4fcf7adeb (patch)
treef167a3444358c60416e59bbea7a47ecbc88b94eb /ace/Acceptor.cpp
parentf495d6a667902fba3d950d9ca37a4d8af88722cf (diff)
downloadATCD-93df2c1a45236a94e566b7d15ebcb9d4fcf7adeb.tar.gz
Removed unnecessary check form Oneshot_Acceptors handle_close ()
Diffstat (limited to 'ace/Acceptor.cpp')
-rw-r--r--ace/Acceptor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp
index 49cd1b525e5..206dcbcd32f 100644
--- a/ace/Acceptor.cpp
+++ b/ace/Acceptor.cpp
@@ -853,22 +853,22 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_close (ACE_HANDLE
ACE_Reactor_Mask)
{
ACE_TRACE ("ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::handle_close");
+
// Guard against multiple closes.
- if (this->concurrency_strategy_ != 0)
+ if (this->delete_concurrency_strategy_)
{
- if (this->delete_concurrency_strategy_)
- delete this->concurrency_strategy_;
+ delete this->concurrency_strategy_;
this->delete_concurrency_strategy_ = 0;
this->concurrency_strategy_ = 0;
-
+
// Note that if we aren't actually registered with the
// ACE_Reactor then it's ok for this call to fail...
-
+
if (this->reactor ())
this->reactor ()->remove_handler
(this,
ACE_Event_Handler::ACCEPT_MASK | ACE_Event_Handler::DONT_CALL);
-
+
if (this->peer_acceptor_.close () == -1)
ACE_ERROR ((LM_ERROR,
ASYS_TEXT ("close\n")));