This commit is contained in:
Romain Vimont 2021-10-30 22:51:29 +02:00
parent d7106d7009
commit b4ee797401
2 changed files with 2 additions and 0 deletions

View file

@ -365,6 +365,7 @@ scrcpy(struct scrcpy_options *options) {
return false;
}
// TODO SDL_Init(SDL_INIT_EVENTS) before starting server
if (!server_start(&s->server)) {
goto end;
}

View file

@ -360,6 +360,7 @@ connect_to_server(uint16_t port, uint32_t attempts, uint32_t delay) {
// it worked!
return socket;
}
// TODO use mutex + condvar + bool stopped
if (attempts) {
SDL_Delay(delay);
}