Skip to content

Commit

Permalink
fix(connect): don't trump Cancel with DeviceCommand disposed
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrjpolak committed Nov 6, 2024
1 parent 1f2d281 commit f459505
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/connect/src/device/DeviceCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ export class DeviceCommands {
}

async _commonCall(type: MessageKey, msg?: DefaultPayloadMessage['message']) {
const resp = await this.call(type, msg);
if (this.disposed) {
throw ERRORS.TypedError('Runtime', 'typedCall: DeviceCommands already disposed');
}
const resp = await this.call(type, msg);

return this._filterCommonTypes(resp);
}
Expand Down

0 comments on commit f459505

Please sign in to comment.