def handle_hup(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><DEDENT>self._hup = True<EOL>
Handle the 'channel hungup' state. The handler should not be writable
after this.