mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2025-12-06 11:09:28 +00:00
bugfix: close open session before trying to sync position
This commit is contained in:
parent
402e264137
commit
de94be965a
1 changed files with 4 additions and 0 deletions
|
|
@ -152,6 +152,10 @@ class PlaybackReporter {
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<void> syncCurrentPosition() async {
|
Future<void> syncCurrentPosition() async {
|
||||||
|
final data = _getSyncData();
|
||||||
|
if (data == null) {
|
||||||
|
await closeSession();
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
_session ??= await startSession();
|
_session ??= await startSession();
|
||||||
} on NoAudiobookPlayingError {
|
} on NoAudiobookPlayingError {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue