- Timestamp:
- Jul 29, 2009, 2:49:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/transport/rfcomm/rfcomm.cpp
r5422 r5423 124 124 125 125 // not found, or not up? ->try to (re-)connect 126 if (info==NULL || !info->up ) {126 if (info==NULL || !info->up || info->socket.is_open() ) { 127 127 logging_debug( "Connecting to " << endpoint.to_string() ); 128 if (info != NULL && !info->up) {128 if (info != NULL && (!info->up || !info->socket.is_open())) { 129 129 logging_debug("Old link is down. Trying to re-establish link."); 130 130 } else { 131 131 info = new link_info(io); 132 132 } 133 info->connect_retries = 0; 133 134 info->remote = endpoint; 134 135 info->socket.async_connect( convert(endpoint), boost::bind( … … 216 217 } 217 218 219 links_mutex.lock(); 220 218 221 // convert endpoints 219 222 info->up = true; … … 221 224 info->remote = convert( info->socket.remote_endpoint() ); 222 225 223 logging_debug("Accept ingincoming connection from "226 logging_debug("Accepted incoming connection from " 224 227 << info->remote.to_string() ); 225 228 226 229 // add to list 227 links_mutex.lock();228 230 links.push_back(info); 229 231 links_mutex.unlock();
Note:
See TracChangeset
for help on using the changeset viewer.