Message ID | 1422007320-10756-1-git-send-email-zhang.zhangkun@huawei.com |
---|---|
State | New |
Headers | show |
diff --git a/net/vhost-user.c b/net/vhost-user.c index 24e050c..d6936ca 100644 --- a/net/vhost-user.c +++ b/net/vhost-user.c @@ -72,6 +72,7 @@ static void vhost_user_cleanup(NetClientState *nc) VhostUserState *s = DO_UPCAST(VhostUserState, nc, nc); vhost_user_stop(s); + qemu_chr_add_handlers(s->chr, NULL, NULL, NULL, NULL); qemu_purge_queued_packets(nc); }