fix: increase event wait time

the statusPageList event is slow
This commit is contained in:
lucasheld 2022-09-18 22:31:30 +02:00
parent e041d66cdc
commit 0821f38faa

View file

@ -310,7 +310,7 @@ class UptimeKumaApi(object):
if self._event_data[Event.MONITOR_LIST] == {} and event in monitor_events: if self._event_data[Event.MONITOR_LIST] == {} and event in monitor_events:
return [] return []
time.sleep(0.01) time.sleep(0.01)
time.sleep(0.01) # wait for multiple messages time.sleep(0.05) # wait for multiple messages
return self._event_data[event] return self._event_data[event]
def _call(self, event, data=None): def _call(self, event, data=None):