Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Lazily initialize GeckoWebExecutor
Browse files Browse the repository at this point in the history
Fixes #3652
  • Loading branch information
MortimerGoro committed Jul 8, 2020
1 parent 4048db0 commit 6fe307d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class GeckoViewFetchClient(
) : Client() {

@VisibleForTesting(otherwise = VisibleForTesting.PRIVATE)
internal var executor: GeckoWebExecutor = EngineProvider.createGeckoWebExecutor(context)
private val executor: GeckoWebExecutor by lazy { EngineProvider.createGeckoWebExecutor(context) }

@Throws(IOException::class)
override fun fetch(request: Request): Response {
Expand Down

0 comments on commit 6fe307d

Please sign in to comment.