Fix saving

This commit is contained in:
Christoph Hagen 2022-06-11 01:05:02 +02:00
parent 6d18c58f38
commit 8f742f3d6f

View File

@ -63,7 +63,7 @@ final class CapServer {
private func scheduleSave() {
nextSaveTime = Date().addingTimeInterval(saveDelay)
DispatchQueue.main.asyncAfter(deadline: .now() + saveDelay) {
DispatchQueue.global().asyncAfter(deadline: .now() + saveDelay) {
self.performScheduledSave()
}
}