| 288 | } |
| 289 | |
| 290 | void StopRPC() |
| 291 | { |
| 292 | static std::once_flag g_rpc_stop_flag; |
| 293 | // This function could be called twice if the GUI has been started with -server=1. |
| 294 | assert(!g_rpc_running); |
| 295 | std::call_once(g_rpc_stop_flag, [&]() { |
| 296 | LogDebug(BCLog::RPC, "Stopping RPC\n"); |
| 297 | DeleteAuthCookie(); |
| 298 | LogDebug(BCLog::RPC, "RPC stopped.\n"); |
| 299 | }); |
| 300 | } |
| 301 | |
| 302 | bool IsRPCRunning() |
| 303 | { |
no test coverage detected