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