Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Apr 27, 2024
1 parent 6c9230a commit e5c01ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qz/utils/PrintingUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class PrintingUtilities {

private static final Logger log = LogManager.getLogger(PrintingUtilities.class);
private static final String PRINT_SERVICE_MESSAGE = "PrintService is no longer available.";
private static final String PRINT_SERVICE_MISSING = "PrintService is no longer available.";

private static GenericKeyedObjectPool<Format,PrintProcessor> processorPool;

Expand Down Expand Up @@ -225,8 +225,8 @@ public static void processPrintRequest(Session session, String UID, JSONObject p
// Catch edge-case with lost PrintService reference
// See: https://github.com/qzind/tray/issues/1259
if(e instanceof PrinterException) {
if(PRINT_SERVICE_MESSAGE.equals(e.getMessage())) {
log.warn("Suppressed exception: \"{}\". Trying to recover...", PRINT_SERVICE_MESSAGE);
if(PRINT_SERVICE_MISSING.equals(e.getMessage())) {
log.warn("Suppressed exception: \"{}\". Trying to recover...", PRINT_SERVICE_MISSING);
PrintServiceMatcher.refreshPrintService(output.getNativePrinter());
processPrintRequest(session, UID, params); // recurse
return;
Expand Down

0 comments on commit e5c01ac

Please sign in to comment.