Use async store

This commit is contained in:
yflory
2017-11-30 15:01:17 +01:00
parent 0840570fbf
commit b3688db202
15 changed files with 251 additions and 297 deletions

View File

@@ -73,12 +73,12 @@ define([
realtime.contentUpdate(doc);
var to = self.setTimeout(function () {
var to = setTimeout(function () {
cb(new Error("Timeout"));
}, 5000);
Realtime.whenRealtimeSyncs(realtime, function () {
self.clearTimeout(to);
clearTimeout(to);
realtime.abort();
finish(Session, void 0);
});