Skip to content

Commit

Permalink
Try fix #26
Browse files Browse the repository at this point in the history
  • Loading branch information
caoli5288 committed Jan 25, 2016
1 parent e7acbbe commit 005e7b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ public class FetchUserTask implements Runnable {
public synchronized void run() {
User user = this.executor.getUserManager().fetchUser(this.uuid);
if (user == null) {
// Not lock in database. Not needed for fresh man.
if (Config.DEBUG) {
this.executor.getMain().logMessage("Fresh user " + this.uuid + '.');
}
this.executor.getUserManager().cacheUser(this.uuid);
this.executor.getUserManager().saveUser(this.uuid, true);
this.executor.cancelTask(this.taskId);
this.executor.getUserManager().unlockUser(this.uuid, true);
} else if (user.isLocked() && this.retryCount++ < 8) {
Expand Down

0 comments on commit 005e7b3

Please sign in to comment.