Skip to content

Commit

Permalink
fix error on nbdestinations undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
folkvir committed May 16, 2018
1 parent 68a89ba commit 0808d5d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/foglet-ndp.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -143007,7 +143007,7 @@ class LaddaProtocol extends DelegationProtocol {
// reduce the fanout in any case
if(this.nbDestinations.value > 0) {
// we set and broadcast
this.nbDestinations = this.nbDestinations.value - 1;
this.nbDestinations.value = this.nbDestinations.value - 1;
}
}
}
Expand Down Expand Up @@ -143325,7 +143325,7 @@ class Client extends EventEmitter{
if(newFanout >= neighbours) {
newFanout = neighbours;
}
this.parent.nbDestinations = newFanout;
this.parent.nbDestinations.value = newFanout;
}
}

Expand Down
2 changes: 1 addition & 1 deletion dist/foglet-ndp.bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/ladda-protocol/ladda-protocol.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class LaddaProtocol extends DelegationProtocol {
// reduce the fanout in any case
if(this.nbDestinations.value > 0) {
// we set and broadcast
this.nbDestinations = this.nbDestinations.value - 1;
this.nbDestinations.value = this.nbDestinations.value - 1;
}
}
}
Expand Down

0 comments on commit 0808d5d

Please sign in to comment.