Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sanic/server/protocols/http_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def close_if_idle(self) -> bool:

:return: boolean - True if closed, false if staying open
"""
if self._http is None or self._http.stage is Stage.IDLE:
if self.http is None or self.http.stage is Stage.IDLE:
self.close()
return True
return False
Expand Down
Loading