Skip to content

Commit

Permalink
responses always skip qos
Browse files Browse the repository at this point in the history
  • Loading branch information
splitice committed Sep 20, 2023
1 parent e8dd0b0 commit 66b642d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Af.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ class Af extends EventEmitter {
}

async zclFoundation(srcEp, dstEp, cId, cmd, zclData, cfg) {
if (cfg?.skipQos === true) {
if (cfg && (cfg.skipQos || cfg.response)) {
return await this._zclFoundation(srcEp, dstEp, cId, cmd, zclData, cfg)
}
return await this.qos.execute(async () => {
Expand All @@ -602,7 +602,7 @@ class Af extends EventEmitter {
}

async zclFunctional(srcEp, dstEp, cId, cmd, zclData, cfg) {
if (cfg?.skipQos === true) {
if (cfg && (cfg.skipQos || cfg.response)) {
return await this._zclFunctional(srcEp, dstEp, cId, cmd, zclData, cfg)
}
return await this.qos.execute(async () => {
Expand Down

0 comments on commit 66b642d

Please sign in to comment.