MCPcopy Create free account
hub / github.com/ElementsProject/elements / InterruptRPC

Function InterruptRPC

src/rpc/server.cpp:297–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

295}
296
297void 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
308void StopRPC()
309{

Callers 2

InterruptFunction · 0.85
startShutdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected