Unified · Split
| @@ -273,6 +273,10 @@ class app.DB · 272 unmodified lines | ||
| 273 | 273 | for slug in @corruptedDocs |
| 274 | 274 | $.arrayDelete(docs, slug) |
| 275 | 275 | |
| 276 | + if docs.length is 0 | |
| 277 | + setTimeout(@deleteCorruptedDocs, 0) | |
| 278 | + return | |
| 279 | + | |
| 276 | 280 | txn = @idbTransaction(db, stores: docs, mode: 'readonly', ignoreError: false) |
| 277 | 281 | txn.oncomplete = => |
| 278 | 282 | setTimeout(@deleteCorruptedDocs, 0) if @corruptedDocs.length > 0 |