File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ def check_close_callback(self):
167167 self ._check_close_callback = False
168168 for connection in list (self ._connections ):
169169 if connection .open :
170- connection ._handle_read ()
170+ connection .socket . _handle_read ()
171171
172172 def connection_close_callback (self , connection ):
173173 try :
@@ -180,10 +180,9 @@ def connection_close_callback(self, connection):
180180 except ValueError :
181181 logging .warning ("Close unknown Connection %s" , connection )
182182 if self ._close_future and not self ._used_connections and not self ._connections :
183- def do_close ():
184- self ._close_future .set_result (None )
185- self ._close_future = None
186- IOLoop .current ().add_callback (do_close )
183+ close_future = self ._close_future
184+ IOLoop .current ().add_callback (close_future .set_result , None )
185+ self ._close_future = None
187186
188187 if not self ._check_close_callback :
189188 IOLoop .current ().add_callback (self .check_close_callback )
You can’t perform that action at this time.
0 commit comments