Skip to content

Commit

Permalink
qemu-char: add_handlers: Don't re-send the be_open event on unregister
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
jwrdegoede authored and Anthony Liguori committed Mar 27, 2013
1 parent 85d91e3 commit a59bcd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qemu-char.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a59bcd3

Please sign in to comment.