summaryrefslogtreecommitdiff
path: root/ACE/ace/ACE.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/ACE.cpp')
-rw-r--r--ACE/ace/ACE.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ACE/ace/ACE.cpp b/ACE/ace/ACE.cpp
index 87c50d06d42..d656b031f5a 100644
--- a/ACE/ace/ACE.cpp
+++ b/ACE/ace/ACE.cpp
@@ -2731,9 +2731,7 @@ ACE::handle_timed_accept (ACE_HANDLE listener,
return -1;
/* NOTREACHED */
case 0:
- if (timeout != 0
- && timeout->sec () == 0
- && timeout->usec () == 0)
+ if (timeout != 0 && *timeout == ACE_Time_Value::zero)
errno = EWOULDBLOCK;
else
errno = ETIMEDOUT;