[libsocialweb] vimeo: Only try and fetch content if credentials are valid
- From: Rob Bradford <rbradford src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsocialweb] vimeo: Only try and fetch content if credentials are valid
- Date: Sat, 12 Nov 2011 10:54:49 +0000 (UTC)
commit 4a6cfd92e0aee61965f362f5225522eb178650fe
Author: Rob Bradford <rob linux intel com>
Date: Sat Nov 12 10:55:38 2011 +0000
vimeo: Only try and fetch content if credentials are valid
services/vimeo/vimeo-item-view.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/services/vimeo/vimeo-item-view.c b/services/vimeo/vimeo-item-view.c
index 40c12a3..c863635 100644
--- a/services/vimeo/vimeo-item-view.c
+++ b/services/vimeo/vimeo-item-view.c
@@ -303,6 +303,11 @@ _get_status_updates (SwVimeoItemView *item_view)
{
SwVimeoItemViewPrivate *priv = GET_PRIVATE (item_view);
RestProxyCall *call;
+ SwService *service;
+
+ service = sw_item_view_get_service (SW_ITEM_VIEW (item_view));
+ if (!sw_service_has_dynamic_cap (service, CREDENTIALS_VALID))
+ return;
sw_call_list_cancel_all (priv->calls);
sw_set_empty (priv->set);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]