]> git.sur5r.net Git - bacula/bacula/commitdiff
Make hangup single shot
authorKern Sibbald <kern@sibbald.com>
Mon, 14 Feb 2011 17:29:07 +0000 (18:29 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:41:36 +0000 (14:41 +0200)
bacula/src/filed/backup.c

index 2eddbe8ebc18581b441d18d30e2b48e031d3aa6d..e1366f8e8d915a7696071c94d5f264c74cb15b85 100644 (file)
@@ -1153,6 +1153,7 @@ bool encode_and_send_attributes(JCR *jcr, FF_PKT *ff_pkt, int &data_stream)
    if (hangup && (jcr->JobFiles > (uint32_t)hangup)) {
       jcr->setJobStatus(JS_Incomplete);
       Jmsg1(jcr, M_FATAL, 0, "Debug hangup requested after %d files.\n", hangup);
+      set_hangup(0);
       return false;
    }