diff options
-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 ca9381bc0c..dee623e592 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); } } |