diff options
Diffstat (limited to 'ace/TLI_Connector.cpp')
-rw-r--r-- | ace/TLI_Connector.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ace/TLI_Connector.cpp b/ace/TLI_Connector.cpp index 2f81329fb55..f6e93cd8935 100644 --- a/ace/TLI_Connector.cpp +++ b/ace/TLI_Connector.cpp @@ -48,9 +48,9 @@ ACE_TLI_Connector::connect (ACE_TLI_Stream &new_stream, // Only open a new endpoint if we don't already have a valid handle. - if (new_stream.get_handle () == ACE_INVALID_HANDLE) - if (new_stream.open (device, flags, info) == -1) - return -1; + if (new_stream.get_handle () == ACE_INVALID_HANDLE + && new_stream.open (device, flags, info) == ACE_INVALID_HANDLE) + return -1; if (local_sap != ACE_Addr::sap_any) { |