mirror of
https://github.com/chatmail/core.git
synced 2026-04-06 07:32:12 +03:00
fix test, and cleanup according profile-image API
This commit is contained in:
@@ -483,6 +483,10 @@ class EventLogger:
|
||||
def set_timeout(self, timeout):
|
||||
self._timeout = timeout
|
||||
|
||||
def consume_events(self, check_error=True):
|
||||
while not self._event_queue.empty():
|
||||
self.get()
|
||||
|
||||
def get(self, timeout=None, check_error=True):
|
||||
timeout = timeout or self._timeout
|
||||
ev = self._event_queue.get(timeout=timeout)
|
||||
|
||||
Reference in New Issue
Block a user