QMP: Fix asynchronous events delivery
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 20 Jan 2010 12:37:59 +0000 (10:37 -0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Jan 2010 14:25:23 +0000 (08:25 -0600)
commit7e728f372f5e24bb4f1beda36c00a403bee3ae59
tree83d89284c7e4472121a9c7f292e61fe04de643fd
parent0b5e00bbc636ca3f8753eb647d14ed39264ba51a
QMP: Fix asynchronous events delivery

Commit f039a563f200beee80cc10fd70b21ea396979dab introduces
a regression as monitor_protocol_event() will return in
the first user Monitor it finds in the QLIST_FOREACH()
loop.

The right thing to do is to only delivery an asynchronous
event if the 'mon' is a QMP Monitor.

The aforementioned commit was an early version, if it was
applied to stable (it should) this one has to be applied
there too.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
monitor.c