| 1379 | } |
| 1380 | |
| 1381 | void static ProcessOneShot() |
| 1382 | { |
| 1383 | string strDest; |
| 1384 | { |
| 1385 | LOCK(cs_vOneShots); |
| 1386 | if (vOneShots.empty()) |
| 1387 | return; |
| 1388 | strDest = vOneShots.front(); |
| 1389 | vOneShots.pop_front(); |
| 1390 | } |
| 1391 | CAddress addr; |
| 1392 | CSemaphoreGrant grant(*semOutbound, true); |
| 1393 | if (grant) { |
| 1394 | if (!OpenNetworkConnection(addr, false, &grant, strDest.c_str(), true)) |
| 1395 | AddOneShot(strDest); |
| 1396 | } |
| 1397 | } |
| 1398 | |
| 1399 | void ThreadOpenConnections() { |
| 1400 | // Connect to specific addresses |
no test coverage detected