exit instead of return if sideload file creation fails
A return here leaves adb sideload in a permanent loop. An exit is more appropriate for this error. Change-Id: I80fb8abae4f6378833aa75f9eaf7ec1acd44b274 Signed-off-by: Ethan Yonker <ethanayonker@gmail.com>
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ static void sideload_service(int s, void *cookie)
|
||||
if(fd < 0) {
|
||||
fprintf(stderr, "failed to create %s\n", ADB_SIDELOAD_FILENAME);
|
||||
adb_close(s);
|
||||
return;
|
||||
exit(1);
|
||||
}
|
||||
|
||||
while(count > 0) {
|
||||
|
||||
Reference in New Issue
Block a user