Add a missing check in case of close_if_idle on a dead connection.
This commit is contained in:
		| @@ -192,7 +192,7 @@ class HttpProtocol(asyncio.Protocol): | |||||||
|  |  | ||||||
|         :return: boolean - True if closed, false if staying open |         :return: boolean - True if closed, false if staying open | ||||||
|         """ |         """ | ||||||
|         if self._http.stage is Stage.IDLE: |         if self._http is None or self._http.stage is Stage.IDLE: | ||||||
|             self.close() |             self.close() | ||||||
|             return True |             return True | ||||||
|         return False |         return False | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 L. Kärkkäinen
					L. Kärkkäinen