[empathy: 48/65] Don't allow calling verify_async() twice
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy: 48/65] Don't allow calling verify_async() twice
- Date: Tue, 24 Aug 2010 13:30:29 +0000 (UTC)
commit 9005c6a1357b612d9a3bce36dd6326da487ab728
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Aug 18 16:44:30 2010 +0200
Don't allow calling verify_async() twice
libempathy/empathy-tls-verifier.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-tls-verifier.c b/libempathy/empathy-tls-verifier.c
index c2169f0..01548b3 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]