aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-autoconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-autoconfig.c')
-rw-r--r--mail/e-mail-autoconfig.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-autoconfig.c b/mail/e-mail-autoconfig.c
index 65d735394a..5fa0fe23a6 100644
--- a/mail/e-mail-autoconfig.c
+++ b/mail/e-mail-autoconfig.c
@@ -289,14 +289,16 @@ mail_autoconfig_resolve_authority (const gchar *domain,
* So use a reference count on the thread closure and always
* let the thread run to completion even if we're not around
* any longer to pick up the result. */
- resolver_thread = g_thread_create (
+ resolver_thread = g_thread_try_new (NULL,
mail_autoconfig_resolver_thread,
resolver_closure_ref (closure),
- FALSE /* not joinable */, error);
+ error);
if (resolver_thread == NULL)
return FALSE;
+ g_thread_unref (resolver_thread);
+
if (G_IS_CANCELLABLE (cancellable))
cancel_id = g_cancellable_connect (
cancellable,