Skip to content

Commit

Permalink
io: Stop appending -listen to net listeners
Browse files Browse the repository at this point in the history
All callers of qio_net_listener_set_name() already add some sort of
"listen" or "listener" suffix.

For intance, we currently have "migration-socket-listener-listen" and
"vnc-listen-listen" as ioc names.

Signed-off-by: Fabiano Rosas <[email protected]>
Signed-off-by: Daniel P. Berrangé <[email protected]>
  • Loading branch information
Fabiano Rosas authored and berrange committed Nov 7, 2023
1 parent e158f8e commit 9c636e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions io/net-listener.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ void qio_net_listener_add(QIONetListener *listener,
QIOChannelSocket *sioc)
{
if (listener->name) {
char *name = g_strdup_printf("%s-listen", listener->name);
qio_channel_set_name(QIO_CHANNEL(sioc), name);
g_free(name);
qio_channel_set_name(QIO_CHANNEL(sioc), listener->name);
}

listener->sioc = g_renew(QIOChannelSocket *, listener->sioc,
Expand Down

0 comments on commit 9c636e0

Please sign in to comment.