Skip to content

Commit

Permalink
Merge pull request #150 from wordpress-mobile/feature/override-ontime…
Browse files Browse the repository at this point in the history
…out-in-loginwpcomservice

Override onTimeout() in LoginWpcomService
  • Loading branch information
nbradbury authored Jul 11, 2024
2 parents 48c9de2 + ffe7648 commit bcfe86f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,12 @@ public void onDestroy() {
super.onDestroy();
}

@Override
public void onTimeout(int startId) {
super.onTimeout(startId);
setState(LoginStep.FAILURE); // This will cal stopSelf()
}

@Override
public int onStartCommand(@Nullable Intent intent, int flags, int startId) {
if (intent == null) {
Expand Down

0 comments on commit bcfe86f

Please sign in to comment.