Merge pull request #427 from PuneetP16/fix-app-reload

[fix]: shell commands execution failure on app reload
This commit is contained in:
Anirban Kar 2024-11-30 03:03:05 +05:30 committed by GitHub
commit fe45651f79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,11 +95,12 @@ export class ActionRunner {
this.#currentExecutionPromise = this.#currentExecutionPromise this.#currentExecutionPromise = this.#currentExecutionPromise
.then(() => { .then(() => {
this.#executeAction(actionId, isStreaming); return this.#executeAction(actionId, isStreaming);
}) })
.catch((error) => { .catch((error) => {
console.error('Action failed:', error); console.error('Action failed:', error);
}); });
return this.#currentExecutionPromise;
} }
async #executeAction(actionId: string, isStreaming: boolean = false) { async #executeAction(actionId: string, isStreaming: boolean = false) {