From 9005c6a1357b612d9a3bce36dd6326da487ab728 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Wed, 18 Aug 2010 16:44:30 +0200 Subject: Don't allow calling verify_async() twice --- libempathy/empathy-tls-verifier.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c index c2169f0fd..01548b325 100644 --- a/libempathy/empathy-tls-verifier.c +++ b/libempathy/empathy-tls-verifier.c @@ -695,6 +695,8 @@ empathy_tls_verifier_verify_async (EmpathyTLSVerifier *self, { EmpathyTLSVerifierPriv *priv = GET_PRIV (self); + g_return_if_fail (priv->verify_result == NULL); + priv->verify_result = g_simple_async_result_new (G_OBJECT (self), callback, user_data, NULL); -- cgit v1.2.3