diff --git a/src/main/java/com/rbkmoney/adapter/bank/payout/spring/boot/starter/service/IntentServiceImpl.java b/src/main/java/com/rbkmoney/adapter/bank/payout/spring/boot/starter/service/IntentServiceImpl.java index 1a3f11b..401f1f0 100644 --- a/src/main/java/com/rbkmoney/adapter/bank/payout/spring/boot/starter/service/IntentServiceImpl.java +++ b/src/main/java/com/rbkmoney/adapter/bank/payout/spring/boot/starter/service/IntentServiceImpl.java @@ -44,7 +44,7 @@ public class IntentServiceImpl implements IntentService { if (exitStateModel.getNextState().getMaxTimePoolingMillis() < Instant.now().toEpochMilli()) { final Failure failure = new Failure("Sleep timeout"); failure.setReason("Max time pool limit reached"); - return Intent.finish(new FinishIntent(FinishStatus.failure(new Failure()))); + return Intent.finish(new FinishIntent(FinishStatus.failure(failure))); } int timerPollingDelay = OptionsExtractors.extractPollingDelay(exitStateModel.getEntryStateModel().getOptions(), timerProperties.getPollingDelay());