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:
parent
9066f1d95f
commit
1a7341e86a
1 changed files with 3 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue