mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
migration: Route errors down through migration_channel_connect
Route async errors (especially from sockets) down through migration_channel_connect and on to migrate_fd_connect where they can be cleaned up. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
@@ -79,12 +79,10 @@ static void socket_outgoing_migration(QIOTask *task,
|
||||
|
||||
if (qio_task_propagate_error(task, &err)) {
|
||||
trace_migration_socket_outgoing_error(error_get_pretty(err));
|
||||
migrate_fd_error(data->s, err);
|
||||
error_free(err);
|
||||
} else {
|
||||
trace_migration_socket_outgoing_connected(data->hostname);
|
||||
migration_channel_connect(data->s, sioc, data->hostname);
|
||||
}
|
||||
migration_channel_connect(data->s, sioc, data->hostname, err);
|
||||
object_unref(OBJECT(sioc));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user