diff options
author | Hans de Goede <hdegoede@redhat.com> | 2013-03-26 11:08:00 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2013-03-27 10:26:49 -0500 |
commit | a59bcd31c91397f8c67b6902e7716d626c5070e6 (patch) | |
tree | 7a66965c56ba8f53018e189d0f4cb968e8022895 | |
parent | 85d91e3295f3af21e4d4a19f1f6691c0bf2ed10c (diff) | |
download | qemu-a59bcd31c91397f8c67b6902e7716d626c5070e6.zip qemu-a59bcd31c91397f8c67b6902e7716d626c5070e6.tar.gz qemu-a59bcd31c91397f8c67b6902e7716d626c5070e6.tar.bz2 |
qemu-char: add_handlers: Don't re-send the be_open event on unregister
Resending the be_open event only is useful when a frontend is registering, not
when it is unregistering.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1364292483-16564-9-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-char.c b/qemu-char.c index ca9381b..dee623e 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -241,7 +241,7 @@ void qemu_chr_add_handlers(CharDriverState *s, /* We're connecting to an already opened device, so let's make sure we also get the open event */ - if (s->be_open) { + if (fe_open && s->be_open) { qemu_chr_be_generic_open(s); } } |