From 5b301d897d826c73205887c3a70d2765a1aa8d58 Mon Sep 17 00:00:00 2001 From: Sean Quah Date: Fri, 6 May 2022 20:20:45 +0100 Subject: [PATCH] Enable cancellation of `GET /rooms//state` requests Signed-off-by: Sean Quah --- synapse/rest/client/room.py | 1 + 1 file changed, 1 insertion(+) diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index e7a6064f5f57..8f66777b5025 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -603,6 +603,7 @@ def __init__(self, hs: "HomeServer"): self.message_handler = hs.get_message_handler() self.auth = hs.get_auth() + @cancellable async def on_GET( self, request: SynapseRequest, room_id: str ) -> Tuple[int, List[JsonDict]]: