File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/me/Logicism/JavaHordeBridge/runnables Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,6 @@ public void run() {
94
94
JSONObject popObject = new JSONObject (BrowserClient .requestToString (bd .getResponse ()));
95
95
if (bd .getResponseCode () == 200 ) {
96
96
if (!popObject .isNull ("id" )) {
97
- failedRequestsCount = 0 ;
98
-
99
97
currentId = popObject .getString ("id" );
100
98
101
99
JSONObject payloadObject = popObject .getJSONObject ("payload" );
@@ -130,8 +128,12 @@ public void run() {
130
128
131
129
if (bd .getResponseCode () == 200 ) {
132
130
if (generation == null ) {
131
+ failedRequestsCount ++;
132
+
133
133
bridge .getLogger ().error ("Aborting generation " + currentId + " due to exceeded 5 retry counts" );
134
134
} else {
135
+ failedRequestsCount = 0 ;
136
+
135
137
bridge .getLogger ().info ("Submitted generation " + currentId + " for the reward of " + rewardObject .getDouble ("reward" ) + " kudos" );
136
138
}
137
139
} else if (bd .getResponseCode () == 404 ) {
You can’t perform that action at this time.
0 commit comments