(self)
| 357 | self.channel.close() |
| 358 | |
| 359 | def detach_from_session(self): |
| 360 | with _lock: |
| 361 | self.is_connected = False |
| 362 | self.channel.handlers = self.connection |
| 363 | self.channel.name = self.channel.stream.name = str(self.connection) |
| 364 | self.connection.server = None |
| 365 | |
| 366 | def disconnect(self): |
| 367 | if self.connection.process_replaced: |