| 341 | } |
| 342 | |
| 343 | void StopRPCServer() { |
| 344 | LogPrint(BCLog::INFO, "Stopping HTTP RPC server\n"); |
| 345 | UnregisterHTTPHandler("/", true); |
| 346 | |
| 347 | if (httpRPCTimerInterface) { |
| 348 | RPCUnsetTimerInterface(httpRPCTimerInterface.get()); |
| 349 | httpRPCTimerInterface.reset(); |
| 350 | } |
| 351 | StopHTTPServer(); |
| 352 | FinalizeHTTPServer(); |
| 353 | } |
| 354 | |
| 355 | void RPCRunLater(const std::string& name, std::function<void()> func, int64_t nSeconds) { |
| 356 | if (!timerInterface) |
no test coverage detected