| 295 | } |
| 296 | |
| 297 | void InterruptRPC() |
| 298 | { |
| 299 | static std::once_flag g_rpc_interrupt_flag; |
| 300 | // This function could be called twice if the GUI has been started with -server=1. |
| 301 | std::call_once(g_rpc_interrupt_flag, []() { |
| 302 | LogPrint(BCLog::RPC, "Interrupting RPC\n"); |
| 303 | // Interrupt e.g. running longpolls |
| 304 | g_rpc_running = false; |
| 305 | }); |
| 306 | } |
| 307 | |
| 308 | void StopRPC() |
| 309 | { |
no outgoing calls
no test coverage detected