Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/fluence-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluencelabs/fluence",
"version": "0.27.3",
"version": "0.27.4",
"description": "TypeScript implementation of Fluence Peer",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/fluence-js/src/internal/FluencePeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,11 @@ export class FluencePeer {
return;
}

// Do not proceed further if the particle is expired
if (item.particle.hasExpired()) {
return;
}

// Do not continue if there was an error in particle interpretation
if (item.result instanceof Error) {
log.error('Interpreter failed: ', jsonify(item.result.message));
Expand Down Expand Up @@ -699,6 +704,10 @@ export class FluencePeer {
particleContext: item.particle.getParticleContext(),
};

if (item.particle.hasExpired()) {
// just in case do not call any services if the particle is already expired
return;
}
this._execSingleCallRequest(req)
.catch((err): CallServiceResult => {
if (err instanceof ServiceError) {
Expand Down