1.1 --- a/BLIP/BLIPRequest.m Thu Jun 19 16:22:05 2008 -0700
1.2 +++ b/BLIP/BLIPRequest.m Tue May 05 15:10:15 2009 -0700
1.3 @@ -175,7 +175,7 @@
1.4 if( ! (_flags & kBLIP_ERR) )
1.5 return nil;
1.6
1.7 - NSMutableDictionary *userInfo = [[self.properties allProperties] mutableCopy];
1.8 + NSMutableDictionary *userInfo = [[[self.properties allProperties] mutableCopy] autorelease];
1.9 NSString *domain = [userInfo objectForKey: @"Error-Domain"];
1.10 int code = [[userInfo objectForKey: @"Error-Code"] intValue];
1.11 if( domain==nil || code==0 ) {
1.12 @@ -255,7 +255,7 @@
1.13 - (void) _connectionClosed
1.14 {
1.15 [super _connectionClosed];
1.16 - if( !_isMine ) {
1.17 + if( !_isMine && !_complete ) {
1.18 // Change incoming response to an error:
1.19 _isMutable = YES;
1.20 [_properties autorelease];
1.21 @@ -263,6 +263,7 @@
1.22 [self _setError: BLIPMakeError(kBLIPError_Disconnected,
1.23 @"Connection closed before response was received")];
1.24 _isMutable = NO;
1.25 + self.complete = YES; // Calls onComplete target
1.26 }
1.27 }
1.28