Fix possible interference with slow ssl connection attempt

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26062 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2008-02-14 15:11:20 +00:00
parent 5dd8e35a27
commit 8ade11113a
2 changed files with 9 additions and 2 deletions

View file

@ -984,9 +984,11 @@ static void debugWrite(GSHTTPURLHandle *handle, NSData *data)
}
if ([[u scheme] isEqualToString: @"https"])
{
/*
* If we are an https connection, negotiate secure connection
/* If we are an https connection, negotiate secure connection.
* Make sure we are not an observer of the file handle while
* it is connecting...
*/
[nc removeObserver: self name: nil object: sock];
if ([sock sslConnect] == NO)
{
[self endLoadInBackground];