'Received Iq with cancelled - this is a cancel confirm.
Delete the session.'

def _handle_event_cancelled(self, iq):

    seqnr = iq['cancelled']['seqnr']
    callback = self.sessions[seqnr]['callback']
    callback(from_jid=iq['from'], result='cancelled')
    del self.sessions[seqnr]
