summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2021-10-12 12:56:11 -0400
committerSolomon Peachy <pizza@shaftnet.org>2021-10-12 12:56:11 -0400
commit66458bb810f57df388d23b5443eb4cd8451773ef (patch)
tree29b371f8f2947373cf70dc39f073d12308c92789
parent68f551788c962e7a128dd87273d390664668c467 (diff)
downloadselphy_print-66458bb810f57df388d23b5443eb4cd8451773ef.tar.gz
selphy_print-66458bb810f57df388d23b5443eb4cd8451773ef.tar.bz2
selphy_print-66458bb810f57df388d23b5443eb4cd8451773ef.zip
dnp: for out of media/etc situations, error out properly instead of warning and retrying indefinitely
-rw-r--r--backend_dnpds40.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/backend_dnpds40.c b/backend_dnpds40.c
index 399013a..4aa86ae 100644
--- a/backend_dnpds40.c
+++ b/backend_dnpds40.c
@@ -2223,9 +2223,8 @@ top:
case 1200: /* Ribbon End */
case 1300: /* Paper Jam */
case 1400: /* Ribbon Error */
- WARNING("Printer not ready: %s, please correct...\n", dnpds40_statuses(status));
- sleep(1);
- goto top;
+ ERROR("Printer not ready: %s, please correct...\n", dnpds40_statuses(status));
+ return CUPS_BACKEND_STOP;
case 1500: /* Paper definition error */
ERROR("Paper definition error, aborting job\n");
return CUPS_BACKEND_CANCEL;