changeset 932:5f03f6937c32

nicer code
author robcast
date Wed, 21 Dec 2011 11:51:24 +0100
parents 333e60e5cae9
children f1e576b80145
files servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java	Tue Dec 20 15:51:36 2011 +0100
+++ b/servlet3/src/main/java/digilib/servlet/AsyncServletWorker.java	Wed Dec 21 11:51:24 2011 +0100
@@ -62,6 +62,7 @@
     /**
      * runs the ImageWorker and writes the image to the ServletResponse.
      */
+    @Override
     public void run() {
         // get fresh response
         HttpServletResponse response = (HttpServletResponse) asyncContext
@@ -149,7 +150,7 @@
         }
         imageWorker.stopNow();
         this.completed = true;
-        Scaler.digilibError(errMsgType, Error.UNKNOWN, null,
+        Scaler.digilibError(errMsgType, Error.UNKNOWN, "ERROR: timeout rendering image!",
                 (HttpServletResponse) asyncContext.getResponse());
         asyncContext.complete();
     }