Skip to content

Commit

Permalink
Merge pull request #99 from gamultong/enhancement/delete-dumb-human-e…
Browse files Browse the repository at this point in the history
…xception

multicast 시 conn 존재하지 않는 예외 DumbHumanException 제거
  • Loading branch information
onee-only authored Dec 30, 2024
2 parents 2646d10 + f34676e commit de2c2b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions conn/manager/internal/connection_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,9 @@ async def receive_multicast_event(message: Message):

for conn_id in message.header["target_conns"]:
conn = ConnectionManager.get_conn(conn_id)
if not conn:
raise DumbHumanException()
if conn is None:
# 이벤트 발행 후 커넥션이 끊길 수 있음.
continue

coroutines.append(conn.send(message))

Expand Down

0 comments on commit de2c2b3

Please sign in to comment.