Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dcdfd6dd authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Allow multiple tcp adb connection to same device." am: 4818194a am:...

Merge "Allow multiple tcp adb connection to same device." am: 4818194a am: e060cdad am: 2337e51f
am: a4fa8778

Change-Id: Ide69733304ed0f1ca51cb36df3a2da42d7b2997a
parents b7109290 a4fa8778
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -226,7 +226,8 @@ static void server_socket_thread(void* arg) {
            D("server: new connection on fd %d", fd);
            D("server: new connection on fd %d", fd);
            close_on_exec(fd);
            close_on_exec(fd);
            disable_tcp_nagle(fd);
            disable_tcp_nagle(fd);
            if (register_socket_transport(fd, "host", port, 1) != 0) {
            std::string serial = android::base::StringPrintf("host-%d", fd);
            if (register_socket_transport(fd, serial.c_str(), port, 1) != 0) {
                adb_close(fd);
                adb_close(fd);
            }
            }
        }
        }