Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit a771290

Browse files
committed
Trying to fix issues
1 parent 745b5ea commit a771290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/net/olympiccode/vhackos/api/requests/Requester.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public OkHttpClient getHttpClient() {
4949
public Response getResponse(Route.CompiledRoute route) {
5050
if (lastRequest >= System.currentTimeMillis() - 1000) {
5151
try {
52-
Thread.sleep(200);
52+
Thread.sleep(1000);
5353
} catch (InterruptedException e) {
5454
e.printStackTrace();
5555
}
@@ -101,6 +101,7 @@ public Response getResponse(Route.CompiledRoute route) {
101101
}
102102
} catch (RuntimeException | LoginException e) {
103103
e.printStackTrace();
104+
System.exit(0);
104105
} catch (final Exception e) {
105106
throw new IllegalStateException("An error occurred while processing rest request", e);
106107
} finally {

0 commit comments

Comments
 (0)