1.1 --- a/BLIP/BLIPConnection.m Thu Jun 19 16:22:05 2008 -0700
1.2 +++ b/BLIP/BLIPConnection.m Tue May 05 15:12:18 2009 -0700
1.3 @@ -8,6 +8,7 @@
1.4
1.5 #import "BLIPConnection.h"
1.6 #import "BLIP_Internal.h"
1.7 +#import "TCP_Internal.h"
1.8 #import "BLIPReader.h"
1.9 #import "BLIPWriter.h"
1.10 #import "BLIPDispatcher.h"
1.11 @@ -153,8 +154,8 @@
1.12 NSError *error = response.error;
1.13 LogTo(BLIPVerbose,@"Received close response: error=%@",error);
1.14 if( error ) {
1.15 - if( [_delegate respondsToSelector: @selector(connection:closeRequestFailedWithError:)] )
1.16 - [_delegate connection: self closeRequestFailedWithError: error];
1.17 + [self _unclose];
1.18 + [self tellDelegate: @selector(connection:closeRequestFailedWithError:) withObject: error];
1.19 } else {
1.20 // Now finally close the socket:
1.21 [super _beginClose];