diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-04 17:28:19 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-05-04 17:28:19 +0000 |
commit | a5c6f1f44912e1285647b0a634e4e427274b1314 (patch) | |
tree | c85cd6d1580005fa88fea88165488076165e11d1 /ACE/ace/Acceptor.cpp | |
parent | ed6c0da2741bfbf7ce6ea541f10a71b5e3a502ea (diff) | |
download | ATCD-a5c6f1f44912e1285647b0a634e4e427274b1314.tar.gz |
Fri May 4 17:25:53 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* ace/Acceptor.cpp:
Fixed incorrect check of the return value of schedule_timer,
an error is indicated with -1, not 0. Thanks to Deux deVille
<dev2 at weitling dot net> for reporting this
Diffstat (limited to 'ACE/ace/Acceptor.cpp')
-rw-r--r-- | ACE/ace/Acceptor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Acceptor.cpp b/ACE/ace/Acceptor.cpp index 3ef869e3ac5..f78c74882b8 100644 --- a/ACE/ace/Acceptor.cpp +++ b/ACE/ace/Acceptor.cpp @@ -1016,7 +1016,7 @@ ACE_Oneshot_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::register_handler if (tv != 0 && this->reactor ()->schedule_timer (this, synch_options.arg (), - *tv) == 0) + *tv) == -1) return -1; else return this->reactor ()->register_handler |