def disconnect(self, device):
        """Disconnect using protocol specific method."""
        self.device.ctrl.sendcontrol('d')
        self.device.ctrl.send("c.")
        self.log("CONSOLE SERVER disconnect")
        try:
            self.device.ctrl.send(chr(4))
        except OSError:
            self.log("Protocol already disconnected")
def disconnect ( self , device ) : self . device . ctrl . sendcontrol ( 'd' ) self . device . ctrl . send ( "c." ) self . log ( "CONSOLE SERVER disconnect" ) try : self . device . ctrl . send ( chr ( 4 ) ) except OSError : self . log ( "Protocol already disconnected" )
Disconnect using protocol specific method.