mirror of
https://github.com/matrix-org/pantalaimon.git
synced 2025-01-23 05:41:13 -05:00
client: raise the LocalProtocolError.
This commit is contained in:
parent
4ef329df41
commit
e2da496f93
@ -89,7 +89,7 @@ class PantaClient(AsyncClient):
|
||||
Raises LocalProtocolError if the loop isn't running.
|
||||
"""
|
||||
if not self.loop_running:
|
||||
LocalProtocolError("Loop is not running")
|
||||
raise LocalProtocolError("Loop is not running")
|
||||
|
||||
self.loop_running = False
|
||||
await self.loop_stopped.wait()
|
||||
|
Loading…
Reference in New Issue
Block a user