]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix false status output. Fixes bug #2103
authorKern Sibbald <kern@sibbald.com>
Wed, 30 Dec 2015 18:20:37 +0000 (19:20 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 30 Dec 2015 18:20:37 +0000 (19:20 +0100)
bacula/src/stored/status.c

index e3612b5cebca77a19e54a548f5274786a04b49ca..2a8b7e6bf81627bab13884030c7edb346187300e 100644 (file)
@@ -517,8 +517,7 @@ static void list_running_jobs(STATUS_PKT *sp)
                    rdcr->dev?rdcr->dev->print_name():
                             rdcr->device->device_name);
             sendit(msg, len, sp);
-         }
-         if (dcr && dcr->device && dcr != rdcr) {
+         } else if (dcr && dcr->device) {
             len = Mmsg(msg, _("Writing: %s %s job %s JobId=%d Volume=\"%s\"\n"
                             "    pool=\"%s\" device=%s\n"),
                    job_level_to_str(jcr->getJobLevel()),