commit | 6d1e6ec36fe47432739b06501894670c10f3d953 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Tue Jun 30 21:47:21 2015 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Jun 30 21:47:21 2015 +0000 |
tree | 08aca987f8fdb49ee8bb2ec3b59a6e2590fc7fa2 | |
parent | b80ed9069623efa3d48ac318c2c7585882d9b5d1 [diff] | |
parent | 6ed68cc412752e4c78755df9a1516e610ec66fa8 [diff] |
Merge "Consistently use strerror in libutils."
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); + } }