Skip to content

Commit b2b1592

Browse files
committed
swap finalize and emit_message order
1 parent 3ec120d commit b2b1592

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/interface/interface.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ function solve(problem::Problem, algorithm::Algorithm; kwargs...)
5252
state = solve_loop!(problem, algorithm, state)
5353

5454
# emit message about finished state
55-
output = finalize_state!(problem, algorithm, state)
5655
emit_message(logger, problem, algorithm, state, :Stop)
5756

58-
return output
57+
return finalize_state!(problem, algorithm, state)
5958
end
6059

6160
@doc """
@@ -79,10 +78,9 @@ function solve!(problem::Problem, algorithm::Algorithm, state::State; kwargs...)
7978
state = solve_loop!(problem, algorithm, state)
8079

8180
# emit message about finished state
82-
output = finalize_state!(problem, algorithm, state)
8381
emit_message(logger, problem, algorithm, state, :Stop)
8482

85-
return output
83+
return finalize_state!(problem, algorithm, state)
8684
end
8785

8886
"""

0 commit comments

Comments
 (0)