| 1964 | } |
| 1965 | |
| 1966 | bool StopNode() { |
| 1967 | LogPrintf("StopNode()\n"); |
| 1968 | MapPort(false); |
| 1969 | if (semOutbound) { |
| 1970 | for (int i = 0; i < MAX_OUTBOUND_CONNECTIONS; i++) { |
| 1971 | semOutbound->post(); |
| 1972 | } |
| 1973 | } |
| 1974 | |
| 1975 | if (fAddressesInitialized) { |
| 1976 | DumpData(); |
| 1977 | fAddressesInitialized = false; |
| 1978 | } |
| 1979 | |
| 1980 | return true; |
| 1981 | } |
| 1982 | |
| 1983 | void SetNetworkActive(bool active) { |
| 1984 | if (fDebug) |
no test coverage detected