File tree 1 file changed +5
-2
lines changed
UniversalDownloaderPlatform.PuppeteerEngine
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -95,9 +95,12 @@ protected virtual async Task Login()
95
95
page = await browser . NewPageAsync ( ) ;
96
96
}
97
97
98
- await page . GoToAsync ( _settings . LoginPageAddress ) ;
98
+ //no await is done on purpose because otherwise WaitForRequestAsync misses tons of events sometimes including _settings.LoginCheckAddress load
99
+ #pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
100
+ page . GoToAsync ( _settings . LoginPageAddress , null ) ;
101
+ #pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
99
102
100
- await page . WaitForRequestAsync ( request => request . Url . Contains ( _settings . LoginCheckAddress ) ) ;
103
+ await page . WaitForRequestAsync ( request => { return request . Url . Contains ( _settings . LoginCheckAddress ) ; } ) ;
101
104
}
102
105
else
103
106
{
You can’t perform that action at this time.
0 commit comments