Skip to content

Commit

Permalink
fix(ipc/scheme_handlers): check if finished, not active, or cancelled…
Browse files Browse the repository at this point in the history
… in 'fail()'
  • Loading branch information
jwerle committed Apr 27, 2024
1 parent 00a9a82 commit a32c54b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ipc/scheme_handlers.cc
Expand Up @@ -1207,7 +1207,11 @@ namespace SSC::IPC {

bool SchemeHandlers::Response::fail (const String& reason) {
const auto bundleIdentifier = this->request.router->bridge->userConfig["meta_bundle_identifier"];
if (this->platformResponse != nullptr) {
if (
this->finished ||
!this->handlers->isRequestActive(this->id) ||
this->handlers->isRequestCancelled(this->id)
) {
return false;
}

Expand Down

0 comments on commit a32c54b

Please sign in to comment.