Skip to content

Commit

Permalink
io/net-listener: Call the notifier during finalize
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Daniel P. Berrangé <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Dr. David Alan Gilbert <[email protected]>
  • Loading branch information
dagrh committed Jun 8, 2021
1 parent d80f54c commit 5b6116d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions io/net-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 5b6116d

Please sign in to comment.