From 59c108948b2c1a21dd4ee6119558204b9db03797 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 3 Nov 2010 19:23:12 +0100 Subject: [PATCH] Stop restore if job is canceled --- bacula/src/filed/job.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/filed/job.c b/bacula/src/filed/job.c index 04ed30620e..41b9c11c2d 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -1917,6 +1917,10 @@ bail_out: ret = 0; /* we stop here */ } + if (job_canceled(jcr)) { + ret = 0; /* we stop here */ + } + return ret; } -- 2.39.2