Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix typo with unnecessary stack_context call

  • Loading branch information...
commit 0107b698ac2bed4ced6c6c529771b95a16da012c 1 parent 004211a
@kachayev authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tornado/netutil.py
View
5 tornado/netutil.py
@@ -253,9 +253,8 @@ def __init__(self, stream, address, server=None):
self.address = address
self.server = server
- # Set on_disconnect as callback for closing stream
- self._disconnect_callback = stack_context.wrap(self._on_disconnect)
- self.stream.set_close_callback(self._disconnect_callback)
+ # Set _on_disconnect method as callback for stream closing
+ self.stream.set_close_callback(self._on_disconnect)
# Call special method which you can override to
# provide custom logic without recalling __init__
Please sign in to comment.
Something went wrong with that request. Please try again.