diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-27 16:26:46 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-27 16:26:46 +0100 |
| commit | d192b691e4464b29d970c40ba4f28117ccf6a094 (patch) | |
| tree | 7a4698a89127d428024054741a82b5c1b93a822d /src/Applet/Applet.cpp | |
| parent | 8ee0526d6b07c329a016e8d0009db51e9839e9f4 (diff) | |
| parent | e742f63e9c56cc2c913fa8cfda7a9d583a2c2aa2 (diff) | |
| download | abrt-d192b691e4464b29d970c40ba4f28117ccf6a094.tar.gz abrt-d192b691e4464b29d970c40ba4f28117ccf6a094.tar.xz abrt-d192b691e4464b29d970c40ba4f28117ccf6a094.zip | |
Merge branch 'master' into rhel6
Diffstat (limited to 'src/Applet/Applet.cpp')
| -rw-r--r-- | src/Applet/Applet.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Applet/Applet.cpp b/src/Applet/Applet.cpp index 550e1aa..b17a88b 100644 --- a/src/Applet/Applet.cpp +++ b/src/Applet/Applet.cpp @@ -255,6 +255,14 @@ int main(int argc, char** argv) applet->Disable(msg); } + /* dbus_bus_request_name can already read some data. Thus while dbus fd hasn't + * any data anymore, dbus library can buffer a message or two. + * If we don't do this, the data won't be processed until next dbus data arrives. + */ + int cnt = 10; + while (dbus_connection_dispatch(system_conn) != DBUS_DISPATCH_COMPLETE && --cnt) + continue; + /* Enter main loop */ gtk_main(); |
