Aufgrund einer Wartung wird GitLab am 17.08. zwischen 8:30 und 9:00 Uhr kurzzeitig nicht zur Verfügung stehen. / Due to maintenance, GitLab will be temporarily unavailable on 17.08. between 8:30 and 9:00 am.

Commit a15850c8 authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼

pipe: stop web server before termination

parent e4e12482
......@@ -484,6 +484,14 @@ check: if (optarg == endptr)
if (ret)
throw RuntimeError("Failed to stop node type {}: reason={}", node_type_name(node->_vt), ret);
#if defined(WITH_NODE_WEBSOCKET) && defined(WITH_WEB)
/* Only start web subsystem if villas-pipe is used with a websocket node */
if (node_type(node)->stop == websocket_stop) {
Web *w = sn.getWeb();
w->stop();
}
#endif /* WITH_NODE_WEBSOCKET */
ret = io_close(&io);
if (ret)
throw RuntimeError("Failed to close IO");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment