MCPcopy Create free account
hub / github.com/LUX-Core/lux / StopHTTPRPC

Function StopHTTPRPC

src/httprpc.cpp:201–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201void StopHTTPRPC()
202{
203 LogPrint("rpc", "Stopping HTTP RPC server\n");
204 UnregisterHTTPHandler("/", true);
205#ifdef ENABLE_WALLET
206 UnregisterHTTPHandler("/wallet/", false);
207#endif
208 if (httpRPCTimerInterface) {
209 RPCUnsetTimerInterface(httpRPCTimerInterface);
210 delete httpRPCTimerInterface;
211 httpRPCTimerInterface = 0;
212 }
213}
214

Callers 1

PrepareShutdownFunction · 0.85

Calls 3

LogPrintFunction · 0.85
UnregisterHTTPHandlerFunction · 0.85
RPCUnsetTimerInterfaceFunction · 0.85

Tested by

no test coverage detected