forked from Qortal/qortal
Wait for 3 seconds between attempts to allow time for data to arrive.
This commit is contained in:
parent
3b5b45b463
commit
e74dcff010
@ -477,6 +477,8 @@ public class ArbitraryResource {
|
|||||||
// Give up after 5 attempts
|
// Give up after 5 attempts
|
||||||
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA, "Data unavailable. Please try again later.");
|
throw ApiExceptionFactory.INSTANCE.createCustomException(request, ApiError.INVALID_CRITERIA, "Data unavailable. Please try again later.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Thread.sleep(3000L);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user