mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 10:49:33 +02:00
sync: don't break the loop if device id is same
This commit is contained in:
1 parent
c1f0e24d21
commit
1e2ef0685d
1 file changed
+1
-1
@@ -182,7 +182,7 @@ namespace Notesnook.API.Services
|
||||
device.LastAccessTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds();
|
||||
foreach (string id in ListDevices())
|
||||
{
|
||||
if (id == device.DeviceId || IsSyncReset(id)) return;
|
||||
if (id == device.DeviceId || IsSyncReset(id)) continue;
|
||||
|
||||
lock (id)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user