migration: Fix the re-run check of the migrate-incoming command
commit603d5a42d3cca58d69dbe9728a47767896486cae
authorYury Kotov <yury-kotov@yandex-team.ru>
Wed, 13 Nov 2019 17:53:25 +0000 (13 20:53 +0300)
committerJuan Quintela <quintela@redhat.com>
Mon, 20 Jan 2020 08:10:22 +0000 (20 09:10 +0100)
tree56ec7154865f4aa714321f8f19ec6596c2c10865
parent2667c98722ddec12c9f43902c6c5668023e1dce9
migration: Fix the re-run check of the migrate-incoming command

The current check sets an error but doesn't fail the command.
This may cause a problem if new connection attempt by the same URI
affects the first connection.

Signed-off-by: Yury Kotov <yury-kotov@yandex-team.ru>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c