'Discard the given callback (if present).'

def unsubscribe(self, channel, callback):

    listeners = self.listeners.get(channel)
    if (listeners and (callback in listeners)):
        listeners.discard(callback)
        del self._priorities[(channel, callback)]
