mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
fix race condition when starting web service
This commit is contained in:
parent
1067c66ab8
commit
959d8aa796
1 changed files with 1 additions and 1 deletions
|
@ -223,11 +223,11 @@ int web_start(struct web *w)
|
|||
error("WebSocket: failed to initialize server");
|
||||
}
|
||||
|
||||
w->state = STATE_STARTED;
|
||||
ret = pthread_create(&w->thread, NULL, worker, w);
|
||||
if (ret)
|
||||
error("Failed to start Web worker");
|
||||
|
||||
w->state = STATE_STARTED;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue