File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ impl Channels {
122122 }
123123
124124 pub ( crate ) fn set_connection_closing ( & self ) {
125+ self . heartbeat . cancel ( ) ;
125126 self . connection_status . set_state ( ConnectionState :: Closing ) ;
126127 for channel in self . lock_inner ( ) . channels . values ( ) {
127128 channel. set_closing ( None ) ;
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ impl IoLoop {
165165 res = self . critical_error ( err) ;
166166 }
167167 }
168- self . heartbeat . cancel ( ) ;
169168 self . clear_serialized_frames ( self . frames . poison ( ) . unwrap_or (
170169 ErrorKind :: InvalidConnectionState ( ConnectionState :: Closed ) . into ( ) ,
171170 ) ) ;
@@ -188,7 +187,6 @@ impl IoLoop {
188187
189188 fn stop ( & mut self ) {
190189 self . status = Status :: Stop ;
191- self . heartbeat . cancel ( ) ;
192190 }
193191
194192 fn poll_socket_events ( & mut self ) {
You can’t perform that action at this time.
0 commit comments