Fix bad backport

This commit is contained in:
David Robertson 2023-06-23 19:06:43 +01:00
parent a8d4f7a35d
commit a78612e64a
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -392,7 +392,7 @@ func (h *SyncLiveHandler) setupConnection(req *http.Request, syncReq *sync3.Requ
log.Trace().Msg("checking poller exists and is running")
pid := sync2.PollerID{UserID: token.UserID, DeviceID: token.DeviceID}
h.EnsurePoller.EnsurePolling(taskCtx, pid, token.AccessTokenHash)
h.EnsurePoller.EnsurePolling(req.Context(), pid, token.AccessTokenHash)
log.Trace().Msg("poller exists and is running")
// this may take a while so if the client has given up (e.g timed out) by this point, just stop.
// We'll be quicker next time as the poller will already exist.