Skip to content

Commit

Permalink
Prevent another fatal exception on statistics update
Browse files Browse the repository at this point in the history
This is associated to #190.
  • Loading branch information
xavierfoucrier committed Feb 12, 2020
1 parent e76a5f7 commit 572df81
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/Inbox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,10 @@ class Inbox {
// prevent statistics error (mainly due to scheduler setting)
if (User == null) {
User = await UI.GmailService.Connect();
}

// retrieve the current inbox
if (Box == null) {
Box = await User.Labels.Get("me", "INBOX").ExecuteAsync();
}

Expand Down

0 comments on commit 572df81

Please sign in to comment.