Skip to content

Commit

Permalink
Only pop the pending frame future if the frame number was actually as…
Browse files Browse the repository at this point in the history
…signed
  • Loading branch information
puddly committed Apr 15, 2024
1 parent 863d869 commit ef3c3c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bellows/ash.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,8 @@ async def _send_frame(self, frame: AshFrame) -> None:

break
finally:
self._pending_data_frames.pop(frm_num)
if frm_num is not None:
self._pending_data_frames.pop(frm_num)

async def send_data(self, data: bytes) -> None:
await self._send_frame(
Expand Down

0 comments on commit ef3c3c1

Please sign in to comment.