Skip to content

Commit

Permalink
put exception wrapper around the relay recv
Browse files Browse the repository at this point in the history
Just to handle any potential faults that I might have missed.
  • Loading branch information
SocksTheWolf committed Nov 24, 2023
1 parent ac49be4 commit e759461
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions BotConnections.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,11 @@ async def TickRelay(self):
if (self.ShouldStop):
return

self.ListenForConnections()
self.HandleRecv()
try:
self.ListenForConnections()
self.HandleRecv()
except Exception as ex:
Logger.Log(LogLevel.Error, f"Encountered error while handling relay server {str(ex)}")

def ListenForConnections(self):
AcceptEvents = self.AcceptListener.select(0)
Expand Down

0 comments on commit e759461

Please sign in to comment.