def handle_err(self):
with self.lock:<EOL><INDENT>if self._state == '<STR_LIT>' and self._dst_addrs:<EOL><INDENT>self._hup = False<EOL>self._set_state("<STR_LIT>")<EOL>return<EOL><DEDENT>self._socket.close()<EOL>self._socket = None<EOL>self._set_state("<STR_LIT>")<EOL>self._write_queue.clear()<EOL>self._write_queue_cond.notify()<EOL><DEDENT>raise PyXMPPIOError("<STR_LIT>")<EOL>
Handle an error reported.