Merge "adb server: don't close stale fd when TCP transport is closed"
This commit is contained in:
commit
b80ed90696
1 changed files with 5 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue