Skip to content

Commit 1c968fa

Browse files
raphaelmrobbi5
authored andcommitted
Fix infinite loop in order cleanup
1 parent d4e31ce commit 1c968fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libpretixsync/src/main/java/eu/pretix/libpretixsync/sync/OrderCleanup.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class OrderCleanup(val store: BlockingEntityStore<Persistable>, val fileStorage:
8686
deltime = System.currentTimeMillis()
8787
}
8888
for (sId in subeventIds) {
89-
if (sId == null) {
89+
if (sId == null || sId == 0L) {
9090
deltime = System.currentTimeMillis() + 1000L * 3600 * 24 * 365 * 20 // should never happen, if it does, don't delete this any time soon
9191
break
9292
}

0 commit comments

Comments
 (0)