Skip to content

Commit 78b90a1

Browse files
committed
fix: avoid creating loop with get_event_loop()
1 parent 141117e commit 78b90a1

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
@@ -87,7 +87,7 @@ def solve(ciphertext: bytes,
8787
plaintext_callback: PlainTextCallback = dummy_callback,
8888
) -> List[int]:
8989

90-
loop = asyncio.get_event_loop()
90+
loop = asyncio.new_event_loop()
9191
future = solve_async(ciphertext, block_size, oracle, parallel,
9292
result_callback, plaintext_callback)
9393
return loop.run_until_complete(future)

0 commit comments

Comments
 (0)