diff --git a/core/src/main/java/info/rmapproject/core/idservice/HttpArkIdService.java b/core/src/main/java/info/rmapproject/core/idservice/HttpArkIdService.java index bf8c1ccd..33dc1227 100644 --- a/core/src/main/java/info/rmapproject/core/idservice/HttpArkIdService.java +++ b/core/src/main/java/info/rmapproject/core/idservice/HttpArkIdService.java @@ -23,6 +23,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import java.io.File; import java.net.URI; public class HttpArkIdService implements IdService { @@ -131,7 +132,7 @@ private synchronized String getEzid() throws Exception { //OR THE EZID SERVER BEING BUSY SERVICING ANOTHER REQUEST. if(shouldRetry) { try { - wait(RETRY_WAIT_TIME); + Thread.sleep(RETRY_WAIT_TIME); } catch (InterruptedException ie) { log.error("Wait interrupted in retry loop", ie); } @@ -186,7 +187,7 @@ private void getMoreEzids() { //OR THE EZID SERVER BEING BUSY SERVICING ANOTHER REQUEST. if(shouldRetry){ try{ - wait(RETRY_WAIT_TIME); + Thread.sleep(RETRY_WAIT_TIME); }catch(InterruptedException ie){ log.error("Wait interrupted in retry loop", ie); }