mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
fix: prevent infinite loop by adding break statement
This commit is contained in:
@ -34,6 +34,7 @@ async def handle_ping(stream: INetStream) -> None:
|
||||
|
||||
except Exception:
|
||||
await stream.reset()
|
||||
break
|
||||
|
||||
|
||||
async def send_ping(stream: INetStream) -> None:
|
||||
|
||||
Reference in New Issue
Block a user