Don't drop the main context when p2p socket configuration fails
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Tue, 8 Mar 2016 18:00:33 +0000 (12:00 -0600)
committerMike Gorse <mgorse@suse.com>
Tue, 8 Mar 2016 18:00:33 +0000 (12:00 -0600)
Otherwise we can re-enter the main loop when sending a key
notification, causing problems.

https://bugzilla.gnome.org/show_bug.cgi?id=763273

atk-adaptor/bridge.c

index d0ca5da0d89ca100bd23a67a7ff6337bcc3221a6..76543e95db8106e2d2fadb69c922dc5fc298dafa 100644 (file)
@@ -902,8 +902,6 @@ spi_atk_create_socket (SpiBridge *app)
     g_warning ("atk-bridge: Couldn't listen on dbus server: %s", error.message);
     dbus_error_free (&error);
     spi_global_app_data->app_bus_addr [0] = '\0';
-    g_main_context_unref (spi_global_app_data->main_context);
-    spi_global_app_data->main_context = NULL;
     return -1;
   }