Skip to content

Commit 635dee7

Browse files
authored
fix: prevent udp ka from throwing error on close (#1425)
1 parent fb43af7 commit 635dee7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interactions/api/voice/voice_gateway.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ def _udp_keep_alive(self) -> None:
280280
except socket.error as e:
281281
self.logger.warning(f"Ending Keep Alive due to {e}")
282282
return
283+
except AttributeError:
284+
return
283285
except Exception as e:
284286
self.logger.debug("Keep Alive Error: ", exc_info=e)
285287
self.logger.debug("Ending UDP Keep Alive")

0 commit comments

Comments
 (0)