aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/empathy-av.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/empathy-av.c b/src/empathy-av.c
index f6d1f5268..5b46307cc 100644
--- a/src/empathy-av.c
+++ b/src/empathy-av.c
@@ -72,12 +72,15 @@ new_call_handler_cb (EmpathyCallFactory *factory,
static void
activate_cb (GApplication *application)
{
- if (!use_timer && !activated)
+ if (!activated)
{
GError *error = NULL;
- /* keep a 'ref' to the application */
- g_application_hold (G_APPLICATION (app));
+ if (!use_timer)
+ {
+ /* keep a 'ref' to the application */
+ g_application_hold (G_APPLICATION (app));
+ }
g_assert (call_factory == NULL);
call_factory = empathy_call_factory_initialise ();