Skip to content

Commit 9f2fe33

Browse files
committed
Close provider after sync
1 parent c714d5b commit 9f2fe33

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/kotlin/at/bitfire/davdroid/sync/CalendarSyncer.kt

-1
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,5 @@ class CalendarSyncer @Inject constructor(
101101
syncManager.performSync()
102102
}
103103
}
104-
105104
}
106105
}

app/src/main/kotlin/at/bitfire/davdroid/sync/Syncer.kt

+4
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ abstract class Syncer(
121121
} finally {
122122
if (httpClient.isInitialized())
123123
httpClient.value.close()
124+
125+
// close content provider client which is acquired above
126+
provider.close()
127+
124128
Logger.log.log(
125129
Level.INFO,
126130
"$contentAuthority sync of $account finished",

0 commit comments

Comments
 (0)