From af37b5fd5165d142e8564c467c8b4031d60616ed Mon Sep 17 00:00:00 2001 From: Raf Date: Thu, 7 Nov 2019 10:48:23 -0500 Subject: [PATCH] Fix issue where user info was being dropped on no connectivity --- selfdrive/tinklad/tinklad.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/tinklad/tinklad.py b/selfdrive/tinklad/tinklad.py index a97c99ac7..6a046748b 100644 --- a/selfdrive/tinklad/tinklad.py +++ b/selfdrive/tinklad/tinklad.py @@ -113,7 +113,8 @@ async def publish_pending_userinfo(self): await self.publisher.send_info(info) self.userInfoCache.task_done() except Exception as error: # pylint: disable=broad-except - print(LOG_PREFIX + "Error attempting to publish user info (%s)" % (error)) + self.userInfoCache.push(info) + print(LOG_PREFIX + "Error attempting to publish user info (%s) (Cache has %d elements)" % (error, self.userInfoCache.count())) async def logUserEvent(self, event, **kwargs): self.eventCache.push(event)