@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.js CHANGED
@@ -679,8 +679,12 @@ var KeystoneAdapter = class _KeystoneAdapter {
679
679
  message: "Keystone operation has ended",
680
680
  params: { operationId: operation.operationId, reason }
681
681
  });
682
- this._jobQueue.cancelActiveAndPending(operation.operationId, ended);
683
- this._uiRegistry.cancel(void 0, void 0, operation.operationId);
682
+ const queueKey = keystoneQueueKey(operation.operationId);
683
+ const ownsRunningCall = this._jobQueue.getActiveJob()?.deviceId === queueKey;
684
+ this._jobQueue.cancelActiveAndPending(queueKey, ended);
685
+ if (ownsRunningCall) {
686
+ this._uiRegistry.cancel(void 0, void 0, operation.operationId);
687
+ }
684
688
  }
685
689
  }
686
690
  this.emitter.emit(import_hwk_adapter_core3.SDK.OPERATION_ENDED, {