We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66be975 commit 4a5d6dbCopy full SHA for 4a5d6db
src/invocation/InvocationService.ts
@@ -261,7 +261,9 @@ export class InvocationService {
261
262
private notifyError(invocation: Invocation, error: Error): void {
263
var correlationId = invocation.request.getCorrelationId().toNumber();
264
- if (this.isRetryable(invocation)) {
+ if (!this.client.getLifecycleService().isRunning()) {
265
+ invocation.deferred.reject(new ClientNotActiveError('Client is not active.', error));
266
+ } else if (this.isRetryable(invocation)) {
267
this.logger.debug('InvocationService',
268
'Retrying(' + invocation.invokeCount + ') on correlation-id=' + correlationId, error);
269
if (invocation.invokeCount < MAX_FAST_INVOCATION_COUNT) {
0 commit comments