fix disconnect issue
This commit is contained in:
parent
8b82c573c4
commit
a057bf1cf0
@ -289,13 +289,12 @@ export class ListIterator {
|
||||
/**
|
||||
* @type {Item | null}
|
||||
*/
|
||||
let item = this.nextItem
|
||||
if (this.rel > 0) {
|
||||
/**
|
||||
* @type {ID}
|
||||
*/
|
||||
const itemid = /** @type {Item} */ (item).id
|
||||
item = getItemCleanStart(tr, createID(itemid.client, itemid.clock + this.rel))
|
||||
const itemid = /** @type {Item} */ (this.nextItem).id
|
||||
this.nextItem = getItemCleanStart(tr, createID(itemid.client, itemid.clock + this.rel))
|
||||
this.rel = 0
|
||||
}
|
||||
const parent = this.type
|
||||
@ -358,12 +357,11 @@ export class ListIterator {
|
||||
})
|
||||
packJsonContent()
|
||||
if (right === null && left !== null) {
|
||||
item = left
|
||||
this.nextItem = left
|
||||
this.reachedEnd = true
|
||||
} else {
|
||||
item = right
|
||||
this.nextItem = right
|
||||
}
|
||||
this.nextItem = item
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -327,6 +327,7 @@ export const testFormattingDeltaUnnecessaryAttributeChange = tc => {
|
||||
* @param {t.TestCase} tc
|
||||
*/
|
||||
export const testInsertAndDeleteAtRandomPositions = tc => {
|
||||
// @todo optimize to run at least as fast as previous marker approach
|
||||
const N = 100000
|
||||
const { text0 } = init(tc, { users: 1 })
|
||||
const gen = tc.prng
|
||||
|
Loading…
x
Reference in New Issue
Block a user