File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ internal class ChromiumDownloadClient : DownloadClient
10
10
{
11
11
private IBrowser browser { get ; set ; }
12
12
private const string ChromiumVersion = "1154303" ;
13
+ private const int StartTimeoutMs = 30000 ;
13
14
14
15
private async Task < IBrowser > DownloadBrowser ( )
15
16
{
@@ -40,7 +41,7 @@ private async Task<IBrowser> DownloadBrowser()
40
41
await browserFetcher . DownloadAsync ( ChromiumVersion ) ;
41
42
}
42
43
43
- Log ( "Starting Browser." ) ;
44
+ Log ( $ "Starting Browser. ( { StartTimeoutMs } ms timeout) ") ;
44
45
return await Puppeteer . LaunchAsync ( new LaunchOptions
45
46
{
46
47
Headless = true ,
@@ -50,7 +51,7 @@ private async Task<IBrowser> DownloadBrowser()
50
51
"--disable-dev-shm-usage" ,
51
52
"--disable-setuid-sandbox" ,
52
53
"--no-sandbox" } ,
53
- Timeout = 10000
54
+ Timeout = StartTimeoutMs
54
55
} ) ;
55
56
}
56
57
You can’t perform that action at this time.
0 commit comments