| 287 | #endif |
| 288 | |
| 289 | void Interrupt(NodeContext& node) |
| 290 | { |
| 291 | #if HAVE_SYSTEM |
| 292 | ShutdownNotify(*node.args); |
| 293 | #endif |
| 294 | // Wake any threads that may be waiting for the tip to change. |
| 295 | if (node.notifications) WITH_LOCK(node.notifications->m_tip_block_mutex, node.notifications->m_tip_block_cv.notify_all()); |
| 296 | InterruptHTTPServer(); |
| 297 | InterruptHTTPRPC(); |
| 298 | InterruptRPC(); |
| 299 | InterruptREST(); |
| 300 | if (node.tor_controller) { |
| 301 | node.tor_controller->Interrupt(); |
| 302 | } |
| 303 | InterruptMapPort(); |
| 304 | if (node.connman) |
| 305 | node.connman->Interrupt(); |
| 306 | for (auto* index : node.indexes) { |
| 307 | index->Interrupt(); |
| 308 | } |
| 309 | } |
| 310 | |
| 311 | void Shutdown(NodeContext& node) |
| 312 | { |