diff --git a/BotConnections.py b/BotConnections.py index 53a6fab..e0ce4e7 100644 --- a/BotConnections.py +++ b/BotConnections.py @@ -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)