From dbc2c7f30da831ec0e06a098bdba044ae41e8217 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Mon, 14 Feb 2011 18:29:07 +0100 Subject: [PATCH] Make hangup single shot --- bacula/src/filed/backup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bacula/src/filed/backup.c b/bacula/src/filed/backup.c index 2eddbe8ebc..e1366f8e8d 100644 --- a/bacula/src/filed/backup.c +++ b/bacula/src/filed/backup.c @@ -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; } -- 2.39.5