Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 988bf19

Browse files
authored
Merge pull request #1479 from github/fixes/pr-session-manager-initialized-exception
Prevent PullRequestSessionManager.StatusChanged throwing
2 parents ed53149 + cf87edf commit 988bf19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.InlineReviews/Services/PullRequestSessionManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ async Task StatusChanged()
236236
}
237237

238238
CurrentSession = session;
239-
initialized.SetResult(null);
239+
initialized.TrySetResult(null);
240240
}
241241
catch (Exception e)
242242
{

0 commit comments

Comments
 (0)