fixed missing delegation of hasResponse method for distributed task wrapper
@@ -33,7 +33,6 @@ import java.util.concurrent.CountDownLatch;
* Task wrapper to manage synchronized operations like transactions.
*
* @author Luca Garulli (l.garulli--(at)--orientdb.com)
- *
*/
public class OSynchronizedTaskWrapper extends OAbstractRemoteTask {
private boolean usesDatabase;
@@ -89,4 +88,12 @@ public class OSynchronizedTaskWrapper extends OAbstractRemoteTask {
public boolean isUsingDatabase() {
return usesDatabase;
}
+
+ @Override
+ public boolean hasResponse() {
+ if (task == null)
+ return super.hasResponse();
+ else
+ return task.hasResponse();
+ }
}
