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

Commit b495516

Browse files
committed
Make sure completion can be listened for multiple times
1 parent 75af400 commit b495516

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.App/Controllers/UIController.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ public IObservable<UserControl> SelectFlow(UIControllerFlow choice)
143143
/// <returns>true for success, false for cancel</returns>
144144
public IObservable<bool> ListenToCompletionState()
145145
{
146-
completion = new Subject<bool>();
146+
if (completion == null)
147+
completion = new Subject<bool>();
147148
return completion;
148149
}
149150

0 commit comments

Comments
 (0)