X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Facquire.c;h=482fcca93e2da754d3e625ff1f786f926a3d6d02;hb=9c5f7fbcb9ccf23876bae25dee36a5a9a3cdd99f;hp=ad1f344fce7757d19d9d19083739d5e49e9a881a;hpb=c1bed1760da7956b0be6530e7362bacf108dd008;p=bacula%2Fbacula diff --git a/bacula/src/stored/acquire.c b/bacula/src/stored/acquire.c index ad1f344fce..482fcca93e 100644 --- a/bacula/src/stored/acquire.c +++ b/bacula/src/stored/acquire.c @@ -524,7 +524,7 @@ bool release_device(DCR *dcr) dev->weof(1); write_ansi_ibm_labels(dcr, ANSI_EOF_LABEL, dev->VolHdr.VolumeName); } - if (!dev->num_writers) { /* if no more writers */ + if (!dev->is_busy()) { /* if no more writers */ volume_unused(dcr); /* we obviously are not using the volume */ } if (!dev->at_weot()) {