[Telepathy-commits] [telepathy-mission-control/master] Remove DBus hack
Alberto Mardegan
alberto.mardegan at nokia.com
Mon Mar 16 02:26:22 PDT 2009
The problem was in the Uis having two different connections to DBus. This is
being fixed in the UIs themselves and in libdbus.
---
src/mcd-account-requests.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
diff --git a/src/mcd-account-requests.c b/src/mcd-account-requests.c
index 0afddf3..555280e 100644
--- a/src/mcd-account-requests.c
+++ b/src/mcd-account-requests.c
@@ -28,8 +28,6 @@
#include <glib/gstdio.h>
#include <glib/gi18n.h>
#include <config.h>
-#define __USE_BSD
-#include <unistd.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <libmcclient/mc-errors.h>
@@ -227,26 +225,6 @@ account_request_common (McdAccount *account, GHashTable *properties,
mc_svc_account_interface_channelrequests_return_from_create
(context, request_id);
- /* FIXME: The following block of code is a hack to workaround D-Bus
- * reordering the messages: bad things happen if the client gets the call
- * to AddRequest or HandleChannels before the reply for the Create/Ensure
- * call */
- {
- McdMaster *master;
- TpDBusDaemon *dbus_daemon;
- DBusConnection *connection;
-
- master = mcd_master_get_default ();
- dbus_daemon = mcd_master_get_dbus_daemon (master);
- connection = dbus_g_connection_get_connection
- (TP_PROXY (dbus_daemon)->dbus_connection);
- dbus_connection_flush (connection);
- dbus_connection_unref (connection);
-
- DEBUG ("sleeping");
- usleep (600000);
- }
-
dispatcher = mcd_master_get_dispatcher (mcd_master_get_default ());
_mcd_dispatcher_add_request (dispatcher, account, channel);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list