Issue #4: Improved sync process. Only unsynced operations are sent now

This commit is contained in:
Kevin Jahns
2014-08-22 20:50:39 +02:00
parent ad5898a77a
commit 77739deda3
48 changed files with 3403 additions and 6930 deletions

View File

@@ -117,8 +117,16 @@ module.exports = class Test
choices[choice](user_num)
flushAll: ()->
for user,user_number in @users
user.getConnector().flushAll()
if @users.length <= 1
for user,user_number in @users
user.getConnector().flushAll()
else
for user,user_number in @users[1..]
user.getConnector().flushAll()
ops = @users[1].getHistoryBuffer()._encode @users[0].HB.getOperationCounter()
@users[0].getEngine().applyOpsCheckDouble ops
compareAll: (test_number)->
@flushAll()