Skip to content

Commit

Permalink
Fix issue where user info was being dropped on no connectivity (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafcabezas authored Nov 7, 2019
1 parent a84eda0 commit 0bc2f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/tinklad/tinklad.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0bc2f8d

Please sign in to comment.