mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Fix recently introduced bug with premature connection close
This commit is contained in:
parent
b549e72432
commit
b8aedfc53e
2 changed files with 19 additions and 3 deletions
|
@ -1073,7 +1073,18 @@ debugWrite(GSHTTPURLHandle *handle, NSData *data)
|
|||
{
|
||||
DESTROY(wData);
|
||||
NSResetMapTable(wProperties);
|
||||
[self _disconnect];
|
||||
|
||||
/* Socket must be removed from I/O notifications and connection state
|
||||
* marked idle, but the socket is left open to be re-used for another
|
||||
* request.
|
||||
*/
|
||||
if (sock)
|
||||
{
|
||||
NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];
|
||||
|
||||
[nc removeObserver: self name: nil object: sock];
|
||||
}
|
||||
connectionState = idle;
|
||||
[super endLoadInBackground];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue