diff options
author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2021-04-21 12:28:31 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2021-06-08 19:36:17 +0100 |
commit | 5b6116d32694c7d82d433c8fcd2b6afcf299d0c9 (patch) | |
tree | 02eb59bd0b05b6e2acc729071875e1deea8f6e7e /io | |
parent | d80f54ce53167e38623b8aafe8317458a6d7a6cd (diff) |
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++) { |