made register / unregister private

This commit is contained in:
Will McGugan
2022-08-06 14:00:10 +01:00
parent cdf7085797
commit 6d94b51a95
4 changed files with 21 additions and 8 deletions

View File

@@ -219,7 +219,7 @@ class MessagePump:
print(self, "close_messages")
self._closing = True
await self._message_queue.put(MessagePriority(None))
self.app.unregister(self)
self.app._unregister(self)
cancel_tasks = list(self._child_tasks)
for task in cancel_tasks:
task.cancel()