TODO
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user