forked from mirrors/rustdesk
add try catch on android setCodecInfo in case of unexpected crash (#13280)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
938e165470
commit
965cb704ec
1 changed files with 7 additions and 1 deletions
|
|
@ -62,7 +62,13 @@ class MainActivity : FlutterActivity() {
|
|||
channelTag
|
||||
)
|
||||
initFlutterChannel(flutterMethodChannel!!)
|
||||
thread { setCodecInfo() }
|
||||
thread {
|
||||
try {
|
||||
setCodecInfo()
|
||||
} catch (e: Exception) {
|
||||
Log.e("MainActivity", "Failed to setCodecInfo: ${e.message}", e)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue