diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-21 09:13:36 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-21 09:13:36 +0000 |
commit | bf09868c378b95bd0f2eb48c534d72a1352b9d42 (patch) | |
tree | 2ce839134b2b03a0c33a2d4060b21a093ed08173 | |
parent | 4bb6e6fc14c8014e653a4cb812a220fdc5f14147 (diff) |
meta-porter: critical on setting the JID twice
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | wocky/wocky-meta-porter.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/wocky/wocky-meta-porter.c b/wocky/wocky-meta-porter.c index afe1b6e..4f4b811 100644 --- a/wocky/wocky-meta-porter.c +++ b/wocky/wocky-meta-porter.c @@ -1515,11 +1515,8 @@ wocky_meta_porter_set_jid (WockyMetaPorter *self, priv = self->priv; - if (priv->jid != NULL) - { - DEBUG ("You cannot set the meta porter JID again"); - return; - } + /* You cannot set the meta porter JID again */ + g_return_if_fail (priv->jid == NULL); /* don't try and change existing porter's JIDs */ |