Use connection method for obraining errors
authorJakub Skoczen <jakub@indexdata.dk>
Tue, 10 Nov 2015 10:06:21 +0000 (11:06 +0100)
committerJakub Skoczen <jakub@indexdata.dk>
Tue, 10 Nov 2015 10:06:21 +0000 (11:06 +0100)
src/main/java/org/yaz4j/AsyncConnection.java

index 6bb2470..d8e9d0c 100644 (file)
@@ -91,7 +91,7 @@ public class AsyncConnection extends Connection {
   void handleError() {
     //handle error
     if (!errorHandled) {
-      ZoomException err = ExceptionUtil.getError(zoomConnection, host, port);
+      ZoomException err = getZoomException();
       if (err != null) {
         if (eh != null) {
           eh.handle(err);