mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
fixup: do not try to sync saved state when not in sync mode
Co-authored-by: David Larlet <david@larlet.fr>
This commit is contained in:
parent
b8db07a4ce
commit
a172c4abea
1 changed files with 7 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue