We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745b5ea commit a771290Copy full SHA for a771290
1 file changed
src/main/java/net/olympiccode/vhackos/api/requests/Requester.java
@@ -49,7 +49,7 @@ public OkHttpClient getHttpClient() {
49
public Response getResponse(Route.CompiledRoute route) {
50
if (lastRequest >= System.currentTimeMillis() - 1000) {
51
try {
52
- Thread.sleep(200);
+ Thread.sleep(1000);
53
} catch (InterruptedException e) {
54
e.printStackTrace();
55
}
@@ -101,6 +101,7 @@ public Response getResponse(Route.CompiledRoute route) {
101
102
} catch (RuntimeException | LoginException e) {
103
104
+ System.exit(0);
105
} catch (final Exception e) {
106
throw new IllegalStateException("An error occurred while processing rest request", e);
107
} finally {
0 commit comments