| 935 | } |
| 936 | |
| 937 | void static ProcessOneShot() { |
| 938 | string strDest; |
| 939 | { |
| 940 | LOCK(cs_vOneShots); |
| 941 | if (vOneShots.empty()) |
| 942 | return; |
| 943 | strDest = vOneShots.front(); |
| 944 | vOneShots.pop_front(); |
| 945 | } |
| 946 | CAddress addr; |
| 947 | CSemaphoreGrant grant(*semOutbound, true); |
| 948 | if (grant) { |
| 949 | if (!OpenNetworkConnection(addr, &grant, strDest.c_str(), true)) |
| 950 | AddOneShot(strDest); |
| 951 | } |
| 952 | } |
| 953 | |
| 954 | void ThreadOpenConnections() { |
| 955 | // Connect to specific addresses |
no test coverage detected