From 836e491d9689706f8f80eced969aa42c7a2f6b1e Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Thu, 2 Oct 2014 03:04:39 -0700 Subject: [PATCH] MGR: Fix a problem where OS X's software firewall can cause RPC authorization to fail. --- clientgui/BOINCTaskBar.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/clientgui/BOINCTaskBar.cpp b/clientgui/BOINCTaskBar.cpp index 680347c7c7..3f226afc46 100644 --- a/clientgui/BOINCTaskBar.cpp +++ b/clientgui/BOINCTaskBar.cpp @@ -509,10 +509,12 @@ wxMenu *CTaskBarIcon::BuildContextMenu() { wxASSERT(wxDynamicCast(pSkinAdvanced, CSkinAdvanced)); // Prevent recursive entry of CMainDocument::RequestRPC() - if (!pDoc->WaitingForRPC()) { - // Account managers have a different menu arrangement - pDoc->rpc.acct_mgr_info(ami); - is_acct_mgr_detected = ami.acct_mgr_url.size() ? true : false; + if (!pDoc->WaitingForRPC()) { + if (pDoc->IsConnected()) { + // Account managers have a different menu arrangement + pDoc->rpc.acct_mgr_info(ami); + is_acct_mgr_detected = ami.acct_mgr_url.size() ? true : false; + } } if (is_acct_mgr_detected) {