Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Commit a8a617c

Browse files
committed
Fix possible infinite loop running platform tests
1 parent eb3ce02 commit a8a617c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Xamarin.Forms.Controls/GalleryPages/PlatformTestsGallery/PlatformTestsConsole.xaml.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@ await Device.InvokeOnMainThreadAsync(() => {
7171
protected override async void OnAppearing()
7272
{
7373
base.OnAppearing();
74-
await Run().ConfigureAwait(false);
74+
75+
if (_testsRunCount == 0)
76+
{
77+
await Run().ConfigureAwait(false);
78+
}
7579
}
7680

7781
async Task Run()

0 commit comments

Comments
 (0)