浏览代码

[sentry] Support refetching server list with HA when previously no servers were up

Romain Rigaux 10 年之前
父节点
当前提交
b2409d9c14
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/libs/libsentry/src/libsentry/api.py

+ 2 - 2
desktop/libs/libsentry/src/libsentry/api.py

@@ -250,11 +250,11 @@ def _get_client(username):
 def _get_server_properties():
   global _api_cache
 
-  if _api_cache is None:
+  if not _api_cache: # If we need to refresh the list or if previously no servers were up 
     _api_cache_lock.acquire()
 
     try:
-      if _api_cache is None:
+      if not _api_cache:
 
         if get_sentry_server_ha_has_security():
           try: