mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
line cache
This commit is contained in:
@@ -121,9 +121,11 @@ class MessagePump:
|
||||
except Exception:
|
||||
log.exception("error getting message")
|
||||
break
|
||||
await self.dispatch_message(message, priority)
|
||||
if self._message_queue.empty():
|
||||
await self.dispatch_message(events.Idle(self))
|
||||
try:
|
||||
await self.dispatch_message(message, priority)
|
||||
finally:
|
||||
if self._message_queue.empty():
|
||||
await self.dispatch_message(events.Idle(self))
|
||||
|
||||
async def dispatch_message(
|
||||
self, message: Message, priority: int = 0
|
||||
|
||||
Reference in New Issue
Block a user