Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
NympheaR authored Dec 29, 2023
1 parent cf705b1 commit 5daeb69
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,16 @@ void AutoItemPrinter::program(SingleSwitchProgramEnvironment& env, BotBaseContex
);
context.wait_for_all_requests();

if (ret_finish == 1){
send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH);
GO_HOME_WHEN_DONE.run_end_of_program(context);
if (ret_finish < 0){
throw OperationFailedException(
ErrorReport::SEND_ERROR_REPORT, env.console,
"Couldn't exit to overworld after 80 seconds.",
true
);
}

send_program_finished_notification(env, NOTIFICATION_PROGRAM_FINISH);
GO_HOME_WHEN_DONE.run_end_of_program(context);
}


Expand Down

0 comments on commit 5daeb69

Please sign in to comment.