def _remove_io_handler(self, handler):
if handler not in self.io_handlers:<EOL><INDENT>return<EOL><DEDENT>self.io_handlers.remove(handler)<EOL>for thread in self.io_threads:<EOL><INDENT>if thread.io_handler is handler:<EOL><INDENT>thread.stop()<EOL><DEDENT><DEDENT>
Remove an IOHandler from the pool.