diff --git a/src/GitMan/Providers/RemoteProvider.cs b/src/GitMan/Providers/RemoteProvider.cs index 2e53560..a9573df 100644 --- a/src/GitMan/Providers/RemoteProvider.cs +++ b/src/GitMan/Providers/RemoteProvider.cs @@ -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 { @@ -56,6 +54,7 @@ void onPopup(object sender, EventArgs eventArgs) menuItem.MenuItems.Clear(); menuItem.MenuItems.AddRange(menuItems); + break; } catch (Exception exception) {