Adjust to new async API.

FossilOrigin-Name: 0c43f5d8caf2123f9dd3f4a75d01a53f8c24fc2dba18fdf7094505676a27e501
This commit is contained in:
Jonathan Schleifer 2012-10-30 19:07:00 +00:00
parent 2d705754fd
commit 279f33ec61

View file

@ -487,14 +487,16 @@
- (BOOL)connection: (OFTCPSocket*)connection - (BOOL)connection: (OFTCPSocket*)connection
didReceiveISO88591Line: (OFString*)line didReceiveISO88591Line: (OFString*)line
context: (id)context
exception: (OFException*)exception exception: (OFException*)exception
{ {
if (line != nil) { if (line != nil) {
[self processLine: line]; [self processLine: line];
[sock asyncReadLineWithTarget: self [sock asyncReadLineWithTarget: self
selector: @selector(connection: selector: @selector(connection:
didReceiveLine: didReceiveLine:context:
exception:)]; exception:)
context: nil];
} }
return NO; return NO;
@ -502,6 +504,7 @@
- (BOOL)connection: (OFTCPSocket*)connection - (BOOL)connection: (OFTCPSocket*)connection
didReceiveLine: (OFString*)line didReceiveLine: (OFString*)line
context: (id)context
exception: (OFException*)exception exception: (OFException*)exception
{ {
if (line != nil) { if (line != nil) {
@ -514,7 +517,8 @@
target: self target: self
selector: @selector(connection: selector: @selector(connection:
didReceiveISO88591Line: didReceiveISO88591Line:
exception:)]; context:exception:)
context: nil];
return NO; return NO;
} }
@ -523,7 +527,8 @@
{ {
[sock asyncReadLineWithTarget: self [sock asyncReadLineWithTarget: self
selector: @selector(connection:didReceiveLine: selector: @selector(connection:didReceiveLine:
exception:)]; context:exception:)
context: nil];
} }
- (void)dealloc - (void)dealloc