fixed bugs that came wih the last commit

This commit is contained in:
Kevin Jahns
2015-07-17 10:34:43 +02:00
parent 4a7f09c32d
commit a4f7f5c987
4 changed files with 64 additions and 50 deletions

View File

@@ -149,8 +149,8 @@ class AbstractConnector { //eslint-disable-line no-unused-vars
let conn = this;
this.y.db.requestTransaction(function*(){
var ops = yield* this.getOperations(m.stateVector);
conn.broadcastedHB = true;
if (ops.length > 0) {
conn.broadcastedHB = true;
conn.broadcast({
type: "update",
ops: ops