async def disconnect ( self ) : if not self . connected : return self . writer . close ( ) self . reader = None self . writer = None
python disconnect shared connection
Disconnect from target .
async def disconnect(self):
        """ Disconnect from target. """
        if not self.connected:
            return

        self.writer.close()
        self.reader = None
        self.writer = None