fix(GODT-2327): Remove unnecessary sync abort call

This commit is contained in:
James Houlahan
2023-02-06 16:37:06 +01:00
committed by Jakub
parent ca1996a670
commit 29d1c7bccd

View File

@ -88,8 +88,7 @@ func (user *User) handleRefreshEvent(ctx context.Context, refresh proton.Refresh
// Cancel the event stream once this refresh is done.
defer user.pollAbort.Abort()
// Cancel and restart ongoing syncs.
user.syncAbort.Abort()
// Resync after the refresh.
defer user.goSync()
return safe.LockRet(func() error {