mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
use the new modified property returned after a server POST
This commit is contained in:
parent
938a1e7ad5
commit
fbbdb6c964
@ -368,7 +368,7 @@ NewEngine.prototype = {
|
||||
yield newitems.get(self.cb);
|
||||
|
||||
let item;
|
||||
while ((item = newitems.iter.next())) {
|
||||
while ((item = yield newitems.iter.next(self.cb))) {
|
||||
this.incoming.push(item);
|
||||
}
|
||||
|
||||
@ -414,12 +414,8 @@ NewEngine.prototype = {
|
||||
yield up.pushRecord(self.cb, out);
|
||||
}
|
||||
yield up.post(self.cb);
|
||||
|
||||
// up.data now contains the post result, get the last timestamp from there
|
||||
for each (let ts in up.data.success) {
|
||||
if (ts > this.lastSync)
|
||||
this.lastSync = ts;
|
||||
}
|
||||
if (up.data.modified > this.lastSync)
|
||||
this.lastSync = up.data.modified;
|
||||
}
|
||||
|
||||
// STEP 6: Save the current snapshot so as to calculate changes at next sync
|
||||
|
Loading…
Reference in New Issue
Block a user