@onekeyfe/hwk-keystone-adapter 1.2.8-alpha.13 → 1.2.8-alpha.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -687,8 +687,12 @@ var KeystoneAdapter = class _KeystoneAdapter {
687
687
  message: "Keystone operation has ended",
688
688
  params: { operationId: operation.operationId, reason }
689
689
  });
690
- this._jobQueue.cancelActiveAndPending(operation.operationId, ended);
691
- this._uiRegistry.cancel(void 0, void 0, operation.operationId);
690
+ const queueKey = keystoneQueueKey(operation.operationId);
691
+ const ownsRunningCall = this._jobQueue.getActiveJob()?.deviceId === queueKey;
692
+ this._jobQueue.cancelActiveAndPending(queueKey, ended);
693
+ if (ownsRunningCall) {
694
+ this._uiRegistry.cancel(void 0, void 0, operation.operationId);
695
+ }
692
696
  }
693
697
  }
694
698
  this.emitter.emit(SDK.OPERATION_ENDED, {