(self)
| 391 | raise |
| 392 | |
| 393 | def close(self): |
| 394 | self.connected = False |
| 395 | self.accepting = False |
| 396 | self.connecting = False |
| 397 | self.del_channel() |
| 398 | if self.socket is not None: |
| 399 | try: |
| 400 | self.socket.close() |
| 401 | except OSError as why: |
| 402 | if why.errno not in (ENOTCONN, EBADF): |
| 403 | raise |
| 404 | |
| 405 | # log and log_info may be overridden to provide more sophisticated |
| 406 | # logging and warning methods. In general, log is for 'hit' logging |
no test coverage detected