]> git.0d.be Git - empathy.git/commitdiff
Don't allow calling verify_async() twice
authorCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Aug 2010 14:44:30 +0000 (16:44 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Wed, 18 Aug 2010 17:18:56 +0000 (19:18 +0200)
libempathy/empathy-tls-verifier.c

index c2169f0fdb4500ded40dd55b275ecbd4b6f7355b..01548b3254558e562ac23cd7918ba0783cad2546 100644 (file)
@@ -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);