From 279f33ec6166d69d10e9826a2f5a35a37e00642a Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Tue, 30 Oct 2012 19:07:00 +0000 Subject: [PATCH] Adjust to new async API. FossilOrigin-Name: 0c43f5d8caf2123f9dd3f4a75d01a53f8c24fc2dba18fdf7094505676a27e501 --- src/IRCConnection.m | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/IRCConnection.m b/src/IRCConnection.m index ac4c892..35c1ac5 100644 --- a/src/IRCConnection.m +++ b/src/IRCConnection.m @@ -487,14 +487,16 @@ - (BOOL)connection: (OFTCPSocket*)connection didReceiveISO88591Line: (OFString*)line + context: (id)context exception: (OFException*)exception { if (line != nil) { [self processLine: line]; [sock asyncReadLineWithTarget: self selector: @selector(connection: - didReceiveLine: - exception:)]; + didReceiveLine:context: + exception:) + context: nil]; } return NO; @@ -502,6 +504,7 @@ - (BOOL)connection: (OFTCPSocket*)connection didReceiveLine: (OFString*)line + context: (id)context exception: (OFException*)exception { if (line != nil) { @@ -514,7 +517,8 @@ target: self selector: @selector(connection: didReceiveISO88591Line: - exception:)]; + context:exception:) + context: nil]; return NO; } @@ -523,7 +527,8 @@ { [sock asyncReadLineWithTarget: self selector: @selector(connection:didReceiveLine: - exception:)]; + context:exception:) + context: nil]; } - (void)dealloc