Browse Source

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

Romain Rigaux 10 năm trước cách đây
mục cha
commit
b2409d9
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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: