Skip to content
This repository has been archived by the owner on Jul 5, 2019. It is now read-only.

Commit

Permalink
Fixed device pairing through router
Browse files Browse the repository at this point in the history
  • Loading branch information
kirovilya committed Aug 8, 2018
1 parent a756ed5 commit 0e4f387
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/components/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ function Controller(shepherd, cfg) {
}
const data = {srcaddr: tcData.nwkaddr, nwkaddr: tcData.nwkaddr, ieeeaddr: tcdata.extaddr, capabilities: {}};
if (self._spinLock) {
self._joinQueue.push(function () {
self.endDeviceAnnceHdlr(data);
self._joinQueue.push({
func: function () {
self.endDeviceAnnceHdlr(data);
},
ieeeAddr: data.ieeeaddr
});
} else {
self._spinLock = true;
Expand Down

0 comments on commit 0e4f387

Please sign in to comment.