mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-07-25 14:08:35 +02:00
Sync local sessions when network reconnects
This commit is contained in:
+6
-2
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user