mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-08-03 17:44:51 +02:00
Sync local sessions when network reconnects
This commit is contained in:
parent
36e0c91e27
commit
59b428100b
1 changed files with 6 additions and 2 deletions
|
@ -41,8 +41,12 @@ export default {
|
|||
if (timeSinceDisconnect > 5000) {
|
||||
console.log('Time since disconnect was', timeSinceDisconnect, 'sync with server')
|
||||
setTimeout(() => {
|
||||
// TODO: Some issue here
|
||||
this.syncLocalMediaProgress()
|
||||
if (this.$platform === 'ios') {
|
||||
// TODO: Update ios to not use this
|
||||
this.syncLocalMediaProgress()
|
||||
} else {
|
||||
this.syncLocalSessions()
|
||||
}
|
||||
}, 4000)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue