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

View file

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

View file

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