/*
    Bacula® - The Network Backup Solution
 
-   Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
+   Copyright (C) 2000-2010 Free Software Foundation Europe e.V.
 
    The main author of Bacula is Kern Sibbald, with contributions from
    many others, a complete list can be found in the file AUTHORS.
  *
  *  Kern E. Sibbald, MM
  *
- *   Version $Id$
  */
 
 
             if (find_one_file(jcr, ff, our_callback, ff->top_fname, (dev_t)-1, true) == 0) {
                return 0;                  /* error return */
             }
+            if (job_canceled(jcr)) {
+               return 0;
+            }
          }
          foreach_dlist(node, &incexe->plugin_list) {
             char *fname = node->c_str();
             ff->cmd_plugin = true;
             plugin_save(jcr, ff, true);
             ff->cmd_plugin = false;
+            if (job_canceled(jcr)) {
+               return 0;
+            }
          }
       }
    }