]> 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 19:22:25 +0000 (20:22 +0100)
bacula/src/filed/job.c

index 04ed30620ec63fa063ec029c055e42d479ec5be1..41b9c11c2d12092a5890c21c75a86356edae4242 100644 (file)
@@ -1917,6 +1917,10 @@ bail_out:
       ret = 0;     /* we stop here */
    }
 
+   if (job_canceled(jcr)) {
+      ret = 0;     /* we stop here */
+   }
+
    return ret;
 }