Merge "adb server: don't close stale fd when TCP transport is closed"

This commit is contained in:
Elliott Hughes 2015-06-29 22:32:19 +00:00 committed by Gerrit Code Review
commit b80ed90696

View file

@ -331,7 +331,11 @@ static void remote_kick(atransport *t)
static void remote_close(atransport *t)
{
adb_close(t->fd);
int fd = t->sfd;
if (fd != -1) {
t->sfd = -1;
adb_close(fd);
}
}