mirror of
https://github.com/Threnklyn/wg-ui.git
synced 2026-05-20 05:43:29 +02:00
e176ae04c2
The getClients() and POST request were being issued one after another (not waiting for the POST to return). This can cause the GET /clients to return the old list before the user config is updated. Waiting for the POST to return before retrieving the new client list fixes the race. This behavior can be reproduced by adding a time.Sleep(time.Second) to the CreateClient server handler.