diff --git a/src/ibusbus.c b/src/ibusbus.c index 7b6af04d..a5673594 100644 --- a/src/ibusbus.c +++ b/src/ibusbus.c @@ -639,6 +639,9 @@ ibus_bus_exit (IBusBus *bus, { g_assert (IBUS_IS_BUS (bus)); + IBusBusPrivate *priv; + priv = IBUS_BUS_GET_PRIVATE (bus); + gboolean result; result = ibus_bus_call (bus, IBUS_SERVICE_IBUS, @@ -648,6 +651,8 @@ ibus_bus_exit (IBusBus *bus, G_TYPE_BOOLEAN, &restart, G_TYPE_INVALID, G_TYPE_INVALID); + ibus_connection_flush (priv->connection); + return result; }