Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 78e06a7

Browse files
author
Tim Emiola
committed
Revert unnecessary behavioural change
1 parent efd2b12 commit 78e06a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hyper/http20/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,12 @@ def close(self, error_code=None):
376376
stream.close(error_code)
377377

378378
# Send GoAway frame to the server
379-
if self._sock is not None:
380-
try:
381-
self._send_cb(GoAwayFrame(0), True)
382-
except Exception as e: # pragma: no cover
383-
log.warn("GoAway frame could not be sent: %s" % e)
379+
try:
380+
self._send_cb(GoAwayFrame(0), True)
381+
except Exception as e: # pragma: no cover
382+
log.warn("GoAway frame could not be sent: %s" % e)
384383

384+
if self._sock is not None:
385385
self._sock.close()
386386
self.__init_state()
387387

0 commit comments

Comments
 (0)