Skip to content

Commit d1a6c0a

Browse files
committed
Set Chromium Start Timeout to 30 seconds.
Resolves C9Glax#135 ?
1 parent 0260868 commit d1a6c0a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Tranga/MangaConnectors/ChromiumDownloadClient.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ internal class ChromiumDownloadClient : DownloadClient
1010
{
1111
private IBrowser browser { get; set; }
1212
private const string ChromiumVersion = "1154303";
13+
private const int StartTimeoutMs = 30000;
1314

1415
private async Task<IBrowser> DownloadBrowser()
1516
{
@@ -40,7 +41,7 @@ private async Task<IBrowser> DownloadBrowser()
4041
await browserFetcher.DownloadAsync(ChromiumVersion);
4142
}
4243

43-
Log("Starting Browser.");
44+
Log($"Starting Browser. ({StartTimeoutMs}ms timeout)");
4445
return await Puppeteer.LaunchAsync(new LaunchOptions
4546
{
4647
Headless = true,
@@ -50,7 +51,7 @@ private async Task<IBrowser> DownloadBrowser()
5051
"--disable-dev-shm-usage",
5152
"--disable-setuid-sandbox",
5253
"--no-sandbox"},
53-
Timeout = 10000
54+
Timeout = StartTimeoutMs
5455
});
5556
}
5657

0 commit comments

Comments
 (0)