1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

web: fix errors caused by merge

This commit is contained in:
Steffen Vogel 2018-10-21 10:27:42 +02:00
parent 9066f1d95f
commit 1a7341e86a

View file

@ -248,15 +248,15 @@ void Web::start()
throw new RuntimeError("Failed to initialize server context");
for (int tries = 10; tries > 0; tries--) {
w->vhost = lws_create_vhost(w->context, &ctx_info);
if (w->vhost)
vhost = lws_create_vhost(context, &ctx_info);
if (vhost)
break;
ctx_info.port++;
warn("WebSocket: failed to setup vhost. Trying another port: %d", ctx_info.port);
}
if (w->vhost == NULL)
if (vhost == NULL)
throw new RuntimeError("Failed to initialize virtual host");
/* Start thread */