From 49ccb91a91c7741d7e4a11b113da4f86d7bf0ad6 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 368976d2b9..13e09472f7 100644 --- a/bacula/src/filed/job.c +++ b/bacula/src/filed/job.c @@ -2194,6 +2194,10 @@ bail_out: ret = 0; /* we stop here */ } + if (job_canceled(jcr)) { + ret = 0; /* we stop here */ + } + return ret; } -- 2.39.5