Message ID | 1441753806-14225-5-git-send-email-marcandre.lureau@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/qemu-char.c b/qemu-char.c index bc37628..d34bfd1 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -2846,6 +2846,7 @@ static void tcp_chr_disconnect(CharDriverState *chr) SocketAddress_to_str(chr->filename, CHR_MAX_FILENAME_SIZE, "disconnected:", s->addr, s->is_listen, s->is_telnet); qemu_chr_be_event(chr, CHR_EVENT_CLOSED); + tcp_set_msgfds(chr, NULL, 0); if (s->reconnect_time) { qemu_chr_socket_restart_timer(chr); }