mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2026-02-07 21:50:53 +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:
|
except Exception:
|
||||||
await stream.reset()
|
await stream.reset()
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
async def send_ping(stream: INetStream) -> None:
|
async def send_ping(stream: INetStream) -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user