summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDebarshi Ray <debarshir@freedesktop.org>2015-04-28 19:13:39 +0200
committerDebarshi Ray <debarshir@freedesktop.org>2015-04-28 19:20:53 +0200
commite89fecb263550c94a3566c97327955afb8fef19f (patch)
tree38c74adb6c4d54bb099368280388f64f1a23ee35
parentea08881caf88e3d84cf8f022b7d334455caad452 (diff)
downloadtelepathy-haze-e89fecb263550c94a3566c97327955afb8fef19f.tar.gz
contact-list: Don't crash if a contact is already in the rosterHEADmaster
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=47005
-rw-r--r--src/contact-list.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/contact-list.c b/src/contact-list.c
index 7397c1d..58b7a9d 100644
--- a/src/contact-list.c
+++ b/src/contact-list.c
@@ -532,7 +532,8 @@ haze_contact_list_request_subscription (HazeContactList *self,
/* If the buddy already exists, then it should already be on the
* subscribe list.
*/
- g_assert (purple_find_buddy (account, bname) == NULL);
+ if (purple_find_buddy (account, bname) != NULL)
+ return;
buddy = purple_buddy_new (account, bname, NULL);