diff options
author | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-18 16:18:19 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-01-18 16:18:19 -0400 |
commit | d9343f65d319615fe59e2b0a49d90348a0541496 (patch) | |
tree | f3c400c81cf7d7b315073e5e7385113cd1adfb51 | |
parent | 2e325c38031bc88568dc065821722dd3e22259cb (diff) | |
download | cloud_mdir_sync-d9343f65d319615fe59e2b0a49d90348a0541496.tar.gz cloud_mdir_sync-d9343f65d319615fe59e2b0a49d90348a0541496.tar.bz2 cloud_mdir_sync-d9343f65d319615fe59e2b0a49d90348a0541496.zip |
Trigger an update of a O365 mailbox if the notification FD closes
Fixes an issue where mailbox changes could be missed.
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r-- | cloud_mdir_sync/office365.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloud_mdir_sync/office365.py b/cloud_mdir_sync/office365.py index 0afaa3f..bf8ccf1 100644 --- a/cloud_mdir_sync/office365.py +++ b/cloud_mdir_sync/office365.py @@ -502,6 +502,8 @@ class O365Mailbox(mailbox.Mailbox): r = None while True: if r is None: + self.need_update = True + self.changed_event.set() r = await self.graph.owa_subscribe( f"https://outlook.office.com/api/beta/me/mailfolders('{self.mailbox_id}')/Messages", "Created,Updated,Deleted") |