Skip to content

Commit 6855b80

Browse files
committed
Resolves #1 issue of incrementing failures counts.
1 parent d04f82d commit 6855b80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/com/ggtracker/uploader/MainFrame.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,14 @@ private void checkReplayFolder() {
205205
* Increments the successful uploads count.
206206
*/
207207
public void incUploadCount() {
208-
uploadCount.incrementAndGet();
209-
uploadedCountLabel.setText( Integer.toString( uploadCount.get() ) );
208+
uploadedCountLabel.setText( Integer.toString( uploadCount.incrementAndGet() ) );
210209
}
211210

212211
/**
213212
* Increments the failed uploads count.
214213
*/
215214
public void incFailedCount() {
216-
failedCountLabel.setText( Integer.toString( failedCount.get() ) );
215+
failedCountLabel.setText( Integer.toString( failedCount.incrementAndGet() ) );
217216
}
218217

219218
/**

0 commit comments

Comments
 (0)