Exit after successful upload in blind mode
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 2 Mar 2020 10:29:54 +0000 (11:29 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Mon, 2 Mar 2020 10:29:54 +0000 (11:29 +0100)
nmrp.c

diff --git a/nmrp.c b/nmrp.c
index 29d3c6dd733e836f25c149d663b1fc8deed8a917..9df5b307a09eb5db0184a774ea6cce50bfddd97f 100644 (file)
--- a/nmrp.c
+++ b/nmrp.c
@@ -634,6 +634,10 @@ int nmrp_do(struct nmrpd_args *args)
                                }
 
                                if (!status) {
+                                       if (args->blind) {
+                                               goto out;
+                                       }
+
                                        printf("Waiting for remote to respond.\n");
                                        upload_ok = 1;
                                        ethsock_set_timeout(sock, args->ul_timeout);