Fix double adb tunnel closing
On error, close the adb tunnel only if it has not already been closed beforehand.
This commit is contained in:
@@ -482,8 +482,10 @@ fail:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always leave this function with tunnel disabled
|
if (tunnel->enabled) {
|
||||||
sc_adb_tunnel_close(tunnel, &server->intr, serial);
|
// Always leave this function with tunnel disabled
|
||||||
|
sc_adb_tunnel_close(tunnel, &server->intr, serial);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user