diff options
-rw-r--r-- | qemu-char.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c index fc4611d3b8..3813efdf19 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2774,6 +2774,7 @@ static void tcp_chr_disconnect(CharDriverState *chr) s->listen_tag = qio_channel_add_watch( QIO_CHANNEL(s->listen_ioc), G_IO_IN, tcp_chr_accept, chr, NULL); } + tcp_set_msgfds(chr, NULL, 0); remove_fd_in_watch(chr); object_unref(OBJECT(s->sioc)); s->sioc = NULL; |