mirror of
https://github.com/Genymobile/scrcpy
synced 2025-09-01 14:55:13 +00:00
Remove the "adb reverse" tunnel immediately
As soon as we accepted a connection, we can remove the "adb reverse" tunnel.
This commit is contained in:
@@ -311,7 +311,7 @@ SDL_bool scrcpy(const char *serial, Uint16 local_port, Uint16 max_size, Uint32 b
|
||||
// to reduce startup time, we could be tempted to init other stuff before blocking here
|
||||
// but we should not block after SDL_Init since it handles the signals (Ctrl+C) in its
|
||||
// event loop: blocking could lead to deadlock
|
||||
TCPsocket device_socket = server_connect_to(&server);
|
||||
TCPsocket device_socket = server_connect_to(&server, serial);
|
||||
if (!device_socket) {
|
||||
server_stop(&server, serial);
|
||||
return SDL_FALSE;
|
||||
|
Reference in New Issue
Block a user