Skip to content

Commit 1fcb1a6

Browse files
committed
disable calling progress callback when solved data is empty
1 parent 3baa972 commit 1fcb1a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/padding_oracle/solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ async def solve_async(
126126
if result.solved is None:
127127
continue
128128

129-
if len(result.solved) >= ctx.solved_counts[result.block_index]:
129+
if len(result.solved) > ctx.solved_counts[result.block_index]:
130130
update_solved(ctx, result.block_index, result.solved)
131131
ctx.solved_counts[result.block_index] = len(result.solved)
132132
ctx.progress_callback(ctx.plaintext)

0 commit comments

Comments
 (0)