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

Function StopRPC

src/rpc/server.cpp:308–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306}
307
308void StopRPC()
309{
310 static std::once_flag g_rpc_stop_flag;
311 // This function could be called twice if the GUI has been started with -server=1.
312 assert(!g_rpc_running);
313 std::call_once(g_rpc_stop_flag, []() {
314 LogPrint(BCLog::RPC, "Stopping RPC\n");
315 WITH_LOCK(g_deadline_timers_mutex, deadlineTimers.clear());
316 DeleteAuthCookie();
317 g_rpcSignals.Stopped();
318 });
319}
320
321bool IsRPCRunning()
322{

Callers 2

ShutdownFunction · 0.85
startShutdownMethod · 0.85

Calls 2

DeleteAuthCookieFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected