[telepathy-gabble/master] wocky_pep_service_get_async: raise an error if service has not been started
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Thu Sep 24 04:19:08 PDT 2009
---
src/wocky-pep-service.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/wocky-pep-service.c b/src/wocky-pep-service.c
index 5f7fbe3..0654327 100644
--- a/src/wocky-pep-service.c
+++ b/src/wocky-pep-service.c
@@ -296,6 +296,14 @@ wocky_pep_service_get_async (WockyPepService *self,
GSimpleAsyncResult *result;
const gchar *jid;
+ if (priv->porter == NULL)
+ {
+ g_simple_async_report_error_in_idle (G_OBJECT (self), callback,
+ user_data, WOCKY_PORTER_ERROR, WOCKY_PORTER_ERROR_NOT_STARTED,
+ "Service has not been started");
+ return;
+ }
+
jid = wocky_bare_contact_get_jid (contact);
msg = wocky_xmpp_stanza_build (
--
1.5.6.5
More information about the telepathy-commits
mailing list