Skip to content

Commit

Permalink
fix: Ember: Add keys to adapter queue executors (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerivec committed Jul 18, 2024
1 parent c2de0be commit 9bec23a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/adapter/ember/adapter/emberAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2343,7 +2343,7 @@ export class EmberAdapter extends Adapter {
}

return {neighbors};
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down Expand Up @@ -2399,7 +2399,7 @@ export class EmberAdapter extends Adapter {
}

return {table};
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down Expand Up @@ -2453,7 +2453,7 @@ export class EmberAdapter extends Adapter {
}

return {type, manufacturerCode: result.manufacturerCode};
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down Expand Up @@ -2483,7 +2483,7 @@ export class EmberAdapter extends Adapter {
);

return {endpoints: result.endpointList};
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down Expand Up @@ -2521,7 +2521,7 @@ export class EmberAdapter extends Adapter {
inputClusters: result.inClusterList,
outputClusters: result.outClusterList,
};
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down Expand Up @@ -2570,7 +2570,7 @@ export class EmberAdapter extends Adapter {
},
DEFAULT_ZDO_REQUEST_TIMEOUT,
);
});
}, destinationNetworkAddress);
} else if (typeof destinationAddressOrGroup === 'number' && type === 'group') {
// dest is group num, so type should always be group (multicast)
return this.queue.execute<void>(async () => {
Expand Down Expand Up @@ -2607,7 +2607,7 @@ export class EmberAdapter extends Adapter {
},
DEFAULT_ZDO_REQUEST_TIMEOUT,
);
});
}, destinationNetworkAddress);
}
}

Expand Down Expand Up @@ -2657,10 +2657,10 @@ export class EmberAdapter extends Adapter {
},
DEFAULT_ZDO_REQUEST_TIMEOUT,
);
});
}, destinationNetworkAddress);
} else if (typeof destinationAddressOrGroup === 'number' && type === 'group') {
// dest is group num, so type should always be group (multicast)
return new Promise<void>(async () => {
return this.queue.execute<void>(async () => {
this.checkInterpanLock();

const zdoPayload = BuffaloZdo.buildUnbindRequest(
Expand Down Expand Up @@ -2694,7 +2694,7 @@ export class EmberAdapter extends Adapter {
},
DEFAULT_ZDO_REQUEST_TIMEOUT,
);
});
}, destinationNetworkAddress);
}
}

Expand All @@ -2720,7 +2720,7 @@ export class EmberAdapter extends Adapter {
},
DEFAULT_ZDO_REQUEST_TIMEOUT,
);
});
}, networkAddress);
}

//---- ZCL
Expand Down Expand Up @@ -2819,7 +2819,7 @@ export class EmberAdapter extends Adapter {
}

return null;
});
}, networkAddress);
}

// queued, non-InterPAN
Expand Down

0 comments on commit 9bec23a

Please sign in to comment.