]> git.sur5r.net Git - bacula/bacula/commitdiff
Stop restore if job is canceled
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 3 Nov 2010 18:23:12 +0000 (19:23 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Wed, 3 Nov 2010 18:24:43 +0000 (19:24 +0100)
bacula/src/filed/job.c

index 368976d2b96dacfa30ca32c90047489627db7047..13e09472f7200d9f3627b6a4473a18a95abdd259 100644 (file)
@@ -2194,6 +2194,10 @@ bail_out:
       ret = 0;     /* we stop here */
    }
 
+   if (job_canceled(jcr)) {
+      ret = 0;     /* we stop here */
+   }
+
    return ret;
 }