am 1bb6a4b8: am eb73219c: am b80ed906: Merge "adb server: don\'t close stale fd when TCP transport is closed"

* commit '1bb6a4b89ed9fbba6d73ee8e716c3e9847feaefa':
  adb server: don't close stale fd when TCP transport is closed
diff --git a/adb/transport_local.cpp b/adb/transport_local.cpp
index d3c4c30..97e3d50 100644
--- a/adb/transport_local.cpp
+++ b/adb/transport_local.cpp
@@ -331,7 +331,11 @@
 
 static void remote_close(atransport *t)
 {
-    adb_close(t->fd);
+    int fd = t->sfd;
+    if (fd != -1) {
+        t->sfd = -1;
+        adb_close(fd);
+    }
 }