| 1280 | } |
| 1281 | |
| 1282 | void static ProcessOneShot() |
| 1283 | { |
| 1284 | string strDest; |
| 1285 | { |
| 1286 | LOCK(cs_vOneShots); |
| 1287 | if (vOneShots.empty()) |
| 1288 | return; |
| 1289 | strDest = vOneShots.front(); |
| 1290 | vOneShots.pop_front(); |
| 1291 | } |
| 1292 | CAddress addr; |
| 1293 | CSemaphoreGrant grant(*semOutbound, true); |
| 1294 | if (grant) { |
| 1295 | if (!OpenNetworkConnection(addr, false, &grant, strDest.c_str(), true)) |
| 1296 | AddOneShot(strDest); |
| 1297 | } |
| 1298 | } |
| 1299 | |
| 1300 | void ThreadOpenConnections() |
| 1301 | { |
no test coverage detected