aboutsummaryrefslogtreecommitdiff
path: root/syncapi/streams/stream_sendtodevice.go
diff options
context:
space:
mode:
Diffstat (limited to 'syncapi/streams/stream_sendtodevice.go')
-rw-r--r--syncapi/streams/stream_sendtodevice.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/syncapi/streams/stream_sendtodevice.go b/syncapi/streams/stream_sendtodevice.go
index 00b67cc4..3262832a 100644
--- a/syncapi/streams/stream_sendtodevice.go
+++ b/syncapi/streams/stream_sendtodevice.go
@@ -44,6 +44,7 @@ func (p *SendToDeviceStreamProvider) IncrementalSync(
lastPos, events, err := snapshot.SendToDeviceUpdatesForSync(req.Context, req.Device.UserID, req.Device.ID, from, to)
if err != nil {
req.Log.WithError(err).Error("p.DB.SendToDeviceUpdatesForSync failed")
+ _ = snapshot.Rollback()
return from
}