Small cleanup
This commit is contained in:
parent
05988107a7
commit
1d5ed46a49
@ -95,17 +95,15 @@ internal class OneTimeKeysUploader @Inject constructor(
|
|||||||
// private keys clogging up our local storage.
|
// private keys clogging up our local storage.
|
||||||
// So we need some kind of engineering compromise to balance all of
|
// So we need some kind of engineering compromise to balance all of
|
||||||
// these factors.
|
// these factors.
|
||||||
try {
|
tryOrNull {
|
||||||
val uploadedKeys = uploadOTK(oneTimeKeyCountFromSync, keyLimit)
|
val uploadedKeys = uploadOTK(oneTimeKeyCountFromSync, keyLimit)
|
||||||
Timber.v("## uploadKeys() : success, $uploadedKeys key(s) sent")
|
Timber.v("## uploadKeys() : success, $uploadedKeys key(s) sent")
|
||||||
} finally {
|
|
||||||
oneTimeKeyCheckInProgress = false
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Timber.w("maybeUploadOneTimeKeys: waiting to know the number of OTK from the sync")
|
Timber.w("maybeUploadOneTimeKeys: waiting to know the number of OTK from the sync")
|
||||||
oneTimeKeyCheckInProgress = false
|
|
||||||
lastOneTimeKeyCheck = 0
|
lastOneTimeKeyCheck = 0
|
||||||
}
|
}
|
||||||
|
oneTimeKeyCheckInProgress = false
|
||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun fetchOtkNumber(): Int? {
|
private suspend fun fetchOtkNumber(): Int? {
|
||||||
|
Loading…
Reference in New Issue
Block a user