Fix sleep intent error message (#12)

This commit is contained in:
vitaxa 2019-07-10 14:43:52 +03:00 committed by GitHub
parent 2d0b590a74
commit 87eb20fe87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());