Use async store
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user