bugfix: close open session before trying to sync position

This commit is contained in:
Dr-Blank 2024-06-20 01:05:57 -04:00
parent 402e264137
commit de94be965a
No known key found for this signature in database
GPG key ID: 7452CC63F210A266

View file

@ -152,6 +152,10 @@ class PlaybackReporter {
}
Future<void> syncCurrentPosition() async {
final data = _getSyncData();
if (data == null) {
await closeSession();
}
try {
_session ??= await startSession();
} on NoAudiobookPlayingError {