'Unregister the client from the SAMP Hub.'

def unregister(self):

    if self.hub.is_connected:
        self._is_registered = False
        self.hub.unregister(self._private_key)
        self._hub_id = None
        self._public_id = None
        self._private_key = None
    else:
        raise SAMPClientError(u'Unable    to    unregister    from    the    SAMP    Hub.    Hub    proxy    not    connected.')
