summaryrefslogtreecommitdiff
path: root/ACE/ace/TLI_Connector.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/TLI_Connector.cpp')
-rw-r--r--ACE/ace/TLI_Connector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/TLI_Connector.cpp b/ACE/ace/TLI_Connector.cpp
index 9a11d2c880b..eb909aadfaf 100644
--- a/ACE/ace/TLI_Connector.cpp
+++ b/ACE/ace/TLI_Connector.cpp
@@ -159,7 +159,7 @@ ACE_TLI_Connector::connect (ACE_TLI_Stream &new_stream,
// non-blocking handle or whether there's really an error.
if (t_errno == TNODATA)
{
- if (timeout->sec () == 0 && timeout->usec () == 0)
+ if (*timeout == ACE_Time_Value::zero)
errno = EWOULDBLOCK;
else
result = this->complete (new_stream, 0, timeout);