|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85745 - trunk/boost/asio/detail
From: chris_at_[hidden]
Date: 2013-09-17 17:42:48
Author: chris_kohlhoff
Date: 2013-09-17 17:42:48 EDT (Tue, 17 Sep 2013)
New Revision: 85745
URL: http://svn.boost.org/trac/boost/changeset/85745
Log:
Fix comparison used to test for a successful synchronous accept.
Text files modified:
trunk/boost/asio/detail/win_iocp_socket_service.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/asio/detail/win_iocp_socket_service.hpp
==============================================================================
--- trunk/boost/asio/detail/win_iocp_socket_service.hpp Tue Sep 17 17:42:08 2013 (r85744)
+++ trunk/boost/asio/detail/win_iocp_socket_service.hpp 2013-09-17 17:42:48 EDT (Tue, 17 Sep 2013) (r85745)
@@ -433,7 +433,7 @@
peer_endpoint ? &addr_len : 0, ec));
// On success, assign new connection to peer socket object.
- if (new_socket.get() >= 0)
+ if (new_socket.get() != invalid_socket)
{
if (peer_endpoint)
peer_endpoint->resize(addr_len);
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk