diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-03-30 15:16:15 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2003-03-30 15:16:15 +0000 |
commit | c432c1aae3f6edda7555e005e5c6182c21e8a7a1 (patch) | |
tree | 09d526cf347d209b8373e8e2fb5b913208b7b55b /ace | |
parent | 6e4170ce36edc9986c2b168c279a5685dfbbc468 (diff) | |
download | ATCD-c432c1aae3f6edda7555e005e5c6182c21e8a7a1.tar.gz |
ChangeLogTag:Sun Mar 30 09:12:16 2003 Douglas C. Schmidt <schmidt@tango.doc.wustl.edu>
Diffstat (limited to 'ace')
-rw-r--r-- | ace/Connector.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ace/Connector.cpp b/ace/Connector.cpp index 57f5046e76c..52651212c74 100644 --- a/ace/Connector.cpp +++ b/ace/Connector.cpp @@ -285,11 +285,15 @@ ACE_Connector<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::handle_timeout ( // magic cookie during ACE_Connector::connect(). This gives the // SVC_HANDLER an opportunity to take corrective action (e.g., // wait a few milliseconds and try to reconnect again. - if (sh->handle_timeout (tv, ast->arg ()) == -1) - sh->handle_close (sh->get_handle (), ACE_Event_Handler::TIMER_MASK); + int result = sh->handle_timeout (tv, ast->arg ()); - // Matches the creation time refcount for AST, which is 1 + // Matches the creation time refcount for AST, which is 1. this->decr_ast_refcount (ast); + + if (result == -1) + sh->handle_close (sh->get_handle (), + ACE_Event_Handler::TIMER_MASK); + return 0; } } |