Skip to content

Commit

Permalink
Try to create the engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch4t4r committed Jun 9, 2021
1 parent 87b6b46 commit 11c31b5
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ class QuicEngineImpl(context: Context, private val quicOnly:Boolean, vararg addr

init {
installNetworkEngine(context) {
engine = createEngine(context, *addresses)
engine = try {
createEngine(context, *addresses)
} catch (ex: Throwable) {
providerInstalled = false
null
}
}
}

Expand Down

0 comments on commit 11c31b5

Please sign in to comment.