@@ -721,13 +721,13 @@ } - (void)asyncReadLineWithTarget: (id)target selector: (SEL)selector { - return [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 - target: target - selector: selector]; + [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 + target: target + selector: selector]; } - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding target: (id)target selector: (SEL)selector @@ -739,12 +739,12 @@ } #ifdef OF_HAVE_BLOCKS - (void)asyncReadLineWithBlock: (of_stream_async_read_line_block_t)block { - return [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 - block: block]; + [self asyncReadLineWithEncoding: OF_STRING_ENCODING_UTF_8 + block: block]; } - (void)asyncReadLineWithEncoding: (of_string_encoding_t)encoding block: (of_stream_async_read_line_block_t)block { @@ -1497,10 +1497,15 @@ - (int)fileDescriptorForWriting { @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd]; } + +- (void)cancelAsyncRequests +{ + [OFRunLoop OF_cancelAsyncRequestsForStream: self]; +} - (void)close { @throw [OFNotImplementedException exceptionWithClass: [self class] selector: _cmd];