Revert "Adjust to new async API."
This reverts commit 6add878e280540ff5359704bed44bcc24c1e8be1. The API has been changed back in ObjFW. FossilOrigin-Name: 52008e00b1016a0073ce9bc325d7d2a7b736d6dbd2e9b5baa3e6ab34cb5cf5be
This commit is contained in:
parent
9fbc9c9b30
commit
54b163ac6a
1 changed files with 4 additions and 9 deletions
|
@ -529,16 +529,14 @@
|
|||
|
||||
- (BOOL)connection: (OFTCPSocket*)connection
|
||||
didReceiveISO88591Line: (OFString*)line
|
||||
context: (id)context
|
||||
exception: (OFException*)exception
|
||||
{
|
||||
if (line != nil) {
|
||||
[self IRC_processLine: line];
|
||||
[sock asyncReadLineWithTarget: self
|
||||
selector: @selector(connection:
|
||||
didReceiveLine:context:
|
||||
exception:)
|
||||
context: nil];
|
||||
didReceiveLine:
|
||||
exception:)];
|
||||
}
|
||||
|
||||
return NO;
|
||||
|
@ -546,7 +544,6 @@
|
|||
|
||||
- (BOOL)connection: (OFTCPSocket*)connection
|
||||
didReceiveLine: (OFString*)line
|
||||
context: (id)context
|
||||
exception: (OFException*)exception
|
||||
{
|
||||
if (line != nil) {
|
||||
|
@ -559,8 +556,7 @@
|
|||
target: self
|
||||
selector: @selector(connection:
|
||||
didReceiveISO88591Line:
|
||||
context:exception:)
|
||||
context: nil];
|
||||
exception:)];
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
@ -569,8 +565,7 @@
|
|||
{
|
||||
[sock asyncReadLineWithTarget: self
|
||||
selector: @selector(connection:didReceiveLine:
|
||||
context:exception:)
|
||||
context: nil];
|
||||
exception:)];
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue