Monitor: Fix command execution regression
commit82617d7ce3bdeef6fa32f71f9976b2f4bf3589e9
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 27 Jan 2010 20:01:17 +0000 (27 18:01 -0200)
committerBlue Swirl <blauwirbel@gmail.com>
Thu, 28 Jan 2010 19:09:44 +0000 (28 19:09 +0000)
treec8d83faa89ab0916c9942d0dd6b67fc98b4c7b5b
parent8f4efc55887957f7ca7d87d4a6b58463cfc9d0d6
Monitor: Fix command execution regression

Function is_async_return() added by commit 940cc30d0d4 assumes
that 'data', which is returned by handlers, is always a QDict.

This is not true, as QLists can also be returned, in this case
we'll get a segfault.

Fix that by checking if 'data' is a QDict.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c