diff options
| author | Peter Xu <peterx@redhat.com> | 2022-03-01 16:39:14 +0800 |
|---|---|---|
| committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-03-02 18:20:45 +0000 |
| commit | e031149c78489413038e934eec9f54ac699cf322 (patch) | |
| tree | b6314db603a6fdf723c8177d6049b71e05c8c83c /python/tests/protocol.py | |
| parent | 27dd21b461569f3b85a9db409f9117ae9d976548 (diff) | |
| download | focaccia-qemu-e031149c78489413038e934eec9f54ac699cf322.tar.gz focaccia-qemu-e031149c78489413038e934eec9f54ac699cf322.zip | |
migration: Add migration_incoming_transport_cleanup()
Add a helper to cleanup the transport listener. When do it, we should also null-ify the cleanup hook and the data, then it's even safe to call it multiple times. Move the socket_address_list cleanup altogether, because that's a mirror of the listener channels and only for the purpose of query-migrate. Hence when someone wants to cleanup the listener transport, it should also want to cleanup the socket list too, always. No functional change intended. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20220301083925.33483-15-peterx@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'python/tests/protocol.py')
0 files changed, 0 insertions, 0 deletions