(self)
| 401 | raise |
| 402 | |
| 403 | def close(self): |
| 404 | self.connected = False |
| 405 | self.accepting = False |
| 406 | self.connecting = False |
| 407 | self.del_channel() |
| 408 | if self.socket is not None: |
| 409 | try: |
| 410 | self.socket.close() |
| 411 | except OSError as why: |
| 412 | if why.errno not in (ENOTCONN, EBADF): |
| 413 | raise |
| 414 | |
| 415 | # log and log_info may be overridden to provide more sophisticated |
| 416 | # logging and warning methods. In general, log is for 'hit' logging |
no test coverage detected