mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2025-08-22 18:31:23 +00:00
Fixed crash #2389.
This commit is contained in:
parent
03132ff77b
commit
3a81676447
1 changed files with 7 additions and 1 deletions
|
@ -78,7 +78,13 @@ class StateSync {
|
||||||
onAuthorized = { sess, isNewlyAuthorized, isNewSession ->
|
onAuthorized = { sess, isNewlyAuthorized, isNewSession ->
|
||||||
if (isNewSession) {
|
if (isNewSession) {
|
||||||
deviceUpdatedOrAdded.emit(sess.remotePublicKey, sess)
|
deviceUpdatedOrAdded.emit(sess.remotePublicKey, sess)
|
||||||
StateApp.instance.scope.launch(Dispatchers.IO) { checkForSync(sess) }
|
StateApp.instance.scope.launch(Dispatchers.IO) {
|
||||||
|
try {
|
||||||
|
checkForSync(sess)
|
||||||
|
} catch (e: Throwable) {
|
||||||
|
Logger.e(TAG, "Failed to check for sync.", e)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue