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:
Ethan Yonker
2013-01-09 16:35:51 +00:00
parent 9028fb4d4c
commit f087dfb52c
+1 -1
View File
@@ -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) {