Skip to content

Commit

Permalink
Use common method to cancel joining for unexpected exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Mar 26, 2015
1 parent 9cb887d commit 9229a85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/droonga-engine-join
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ class JoinCommand
rescue Exception => exception
puts("Unexpected exception: #{exception.message}")
puts(exception.backtrace.join("\n"))
unregister_from_existing_nodes
reset_node_role
do_cancel
exit(false)
end
end
Expand Down

0 comments on commit 9229a85

Please sign in to comment.