File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
UniversalDownloaderPlatform.PuppeteerEngine Expand file tree Collapse file tree 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()
9595 page = await browser . NewPageAsync ( ) ;
9696 }
9797
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
99102
100- await page . WaitForRequestAsync ( request => request . Url . Contains ( _settings . LoginCheckAddress ) ) ;
103+ await page . WaitForRequestAsync ( request => { return request . Url . Contains ( _settings . LoginCheckAddress ) ; } ) ;
101104 }
102105 else
103106 {
You can’t perform that action at this time.
0 commit comments