Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f087dfb5 authored by Ethan Yonker's avatar Ethan Yonker
Browse files

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: default avatarEthan Yonker <ethanayonker@gmail.com>
parent 9028fb4d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {