'Empty the send queue, typically done once the session has started to
remove the feature negotiation and log in stanzas.'

def clear(self):

    with self.send_queue_lock:
        for i in range(0, self.send_queue.qsize()):
            self.send_queue.get(block=False)
    with self.recv_queue_lock:
        for i in range(0, self.recv_queue.qsize()):
            self.recv_queue.get(block=False)
