diff options
author | Dr. David Alan Gilbert | 2021-04-21 13:28:31 +0200 |
---|---|---|
committer | Dr. David Alan Gilbert | 2021-06-08 20:36:17 +0200 |
commit | 5b6116d32694c7d82d433c8fcd2b6afcf299d0c9 (patch) | |
tree | 02eb59bd0b05b6e2acc729071875e1deea8f6e7e /io | |
parent | channel-socket: Only set CLOEXEC if we have space for fds (diff) | |
download | qemu-5b6116d32694c7d82d433c8fcd2b6afcf299d0c9.tar.gz qemu-5b6116d32694c7d82d433c8fcd2b6afcf299d0c9.tar.xz qemu-5b6116d32694c7d82d433c8fcd2b6afcf299d0c9.zip |
io/net-listener: Call the notifier during finalize
Call the notifier during finalize; it's currently only called
if we change it, which is not the intent.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20210421112834.107651-3-dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'io')
-rw-r--r-- | io/net-listener.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io/net-listener.c b/io/net-listener.c index 46c2643d00..1c984d69c6 100644 --- a/io/net-listener.c +++ b/io/net-listener.c @@ -292,6 +292,9 @@ static void qio_net_listener_finalize(Object *obj) QIONetListener *listener = QIO_NET_LISTENER(obj); size_t i; + if (listener->io_notify) { + listener->io_notify(listener->io_data); + } qio_net_listener_disconnect(listener); for (i = 0; i < listener->nsioc; i++) { |