diff --git a/umap/static/umap/js/modules/sync/engine.js b/umap/static/umap/js/modules/sync/engine.js index fcb05b1d..c8451392 100644 --- a/umap/static/umap/js/modules/sync/engine.js +++ b/umap/static/umap/js/modules/sync/engine.js @@ -127,10 +127,13 @@ export class SyncEngine { } saved() { - this.transport.send('SavedMessage', { - sender: this.peerId, - lastKnownHLC: this._operations.getLastKnownHLC(), - }) + if (this.offline) return + if (this.transport) { + this.transport.send('SavedMessage', { + sender: this.peerId, + lastKnownHLC: this._operations.getLastKnownHLC(), + }) + } } _send(inputMessage) {