mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
[KOE-24] Added null check for folder id in stall detection
This commit is contained in:
parent
4e91672227
commit
862e0ddd04
@ -500,9 +500,12 @@ namespace Acacia.Features.SyncState
|
||||
|
||||
// Check if the folder has synced. In that case, it's not stalled.
|
||||
string folderId = (string)inbox.GetProperty(OutlookConstants.PR_ZPUSH_FOLDER_ID);
|
||||
SyncSession sync = account.GetFeatureData<SyncSession>(this, null);
|
||||
if (sync.HasFolderSynced(folderId))
|
||||
return;
|
||||
if (folderId != null)
|
||||
{
|
||||
SyncSession sync = account.GetFeatureData<SyncSession>(this, null);
|
||||
if (sync.HasFolderSynced(folderId))
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// It is not syncing, check for a stall
|
||||
|
Loading…
Reference in New Issue
Block a user