summary refs log tree commit diff
path: root/synapse/appservice/scheduler.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/appservice/scheduler.py')
-rw-r--r--synapse/appservice/scheduler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/appservice/scheduler.py b/synapse/appservice/scheduler.py

index 03b81b0e9f..251224064d 100644 --- a/synapse/appservice/scheduler.py +++ b/synapse/appservice/scheduler.py
@@ -135,7 +135,7 @@ class _ServiceQueuer: ) async def _send_request( - self, service: ApplicationService, ephemeral: Optional[Any] = None + self, service: ApplicationService ): # sanity-check: we shouldn't get here if this service already has a sender # running. @@ -145,7 +145,7 @@ class _ServiceQueuer: try: while True: events = self.queued_events.pop(service.id, []) - ephemeral = self.queued_ephemeral.pop(service.id, []) + ephemeral = self.queued_ephemeral.pop(service.id, None) if not events and not ephemeral: return try: