diff options
author | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-21 00:16:44 +0100 |
---|---|---|
committer | Lars Uebernickel <lars.uebernickel@canonical.com> | 2012-11-21 00:16:44 +0100 |
commit | 1d96aab069071bd6f73b3be8beb40ca25d37fa86 (patch) | |
tree | 9b41ef72812407c06ec2fedb988ad7c1984af538 /src/messages-service.c | |
parent | d22b49e5fee5ae352ec6050e63181850a857fb3a (diff) | |
download | ayatana-indicator-messages-1d96aab069071bd6f73b3be8beb40ca25d37fa86.tar.gz ayatana-indicator-messages-1d96aab069071bd6f73b3be8beb40ca25d37fa86.tar.bz2 ayatana-indicator-messages-1d96aab069071bd6f73b3be8beb40ca25d37fa86.zip |
Replace app when another process is registering with the same id
Diffstat (limited to 'src/messages-service.c')
-rw-r--r-- | src/messages-service.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/messages-service.c b/src/messages-service.c index 18f3d0a..b3731a8 100644 --- a/src/messages-service.c +++ b/src/messages-service.c @@ -119,12 +119,7 @@ register_application (IndicatorMessagesService *service, GDBusConnection *bus; const gchar *sender; - if (!im_application_list_add (applications, desktop_id)) { - g_dbus_method_invocation_return_dbus_error (invocation, - "com.canonical.indicator.messages.RegistrationFailed", - "registration failed"); - return; - } + im_application_list_add (applications, desktop_id); bus = g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (service)); sender = g_dbus_method_invocation_get_sender (invocation); |