소스 검색

[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: