Skip to content

Commit

Permalink
Don't wait forever here
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Feb 27, 2019
1 parent a1cab82 commit 6c7f5f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void onException(@NonNull Exception ex) {

synchronized (lock) {
try {
lock.wait();
lock.wait(5000);
} catch (InterruptedException ex) {
Logging.log(ex);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public void onFailedConnecting(@NonNull MultiProfile.UserProfile profile, @NonNu

synchronized (lock) {
try {
lock.wait();
lock.wait(5000);
} catch (InterruptedException ex) {
Logging.log(ex);
}
Expand Down

0 comments on commit 6c7f5f4

Please sign in to comment.