diff --git a/app/src/server.c b/app/src/server.c index bc5e4f9e..246083ab 100644 --- a/app/src/server.c +++ b/app/src/server.c @@ -4,7 +4,6 @@ #include #include #include -#include #include "netutil.h" #define SOCKET_NAME "scrcpy" @@ -123,13 +122,6 @@ void server_stop(struct server *server, const char *serial) { SDLNet_TCP_Close(server->device_socket); } - // let the server some time to print any exception trace before killing it - struct timespec timespec = { - .tv_sec = 0, - .tv_nsec = 100000000, // 100ms - }; - nanosleep(×pec, NULL); // ignore error - terminate_server(server->process); if (server->adb_reverse_enabled) {