Skip to content

Commit

Permalink
Fix remote provider fetching looping infinitely
Browse files Browse the repository at this point in the history
  • Loading branch information
Scepheo committed Jun 17, 2019
1 parent 0dd2757 commit 99f6559
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/GitMan/Providers/RemoteProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ void onPopup(object sender, EventArgs eventArgs)
var originalCursor = Cursor.Current;
Cursor.Current = Cursors.WaitCursor;

var trying = true;

while (trying)
while (true)
{
try
{
Expand All @@ -56,6 +54,7 @@ void onPopup(object sender, EventArgs eventArgs)

menuItem.MenuItems.Clear();
menuItem.MenuItems.AddRange(menuItems);
break;
}
catch (Exception exception)
{
Expand Down

0 comments on commit 99f6559

Please sign in to comment.