mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
simplified with one hunk of code instead of two
This commit is contained in:
parent
9cb56a03a0
commit
30a8cfd2b9
1 changed files with 2 additions and 9 deletions
|
@ -179,7 +179,8 @@
|
|||
ASSIGN(_cfh, fh);
|
||||
|
||||
[_fh acceptConnectionInBackgroundAndNotify];
|
||||
if (_isSecure && [_cfh sslAccept])
|
||||
|
||||
if (!_isSecure || (_isSecure && [_cfh sslAccept]))
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self
|
||||
selector: @selector(_read:)
|
||||
|
@ -188,14 +189,6 @@
|
|||
|
||||
[_cfh readInBackgroundAndNotify];
|
||||
}
|
||||
else
|
||||
{
|
||||
[[NSNotificationCenter defaultCenter] addObserver: self
|
||||
selector: @selector(_read:)
|
||||
name: NSFileHandleReadCompletionNotification
|
||||
object: _cfh];
|
||||
[_cfh readInBackgroundAndNotify];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue