Permalink
Browse files

Resolve EXC_BAD_ACCESS error in detailed history.

  • Loading branch information...
1 parent 81a1708 commit 9b005db99bd8b6826285c73251d79f3def7d33d6 @tanaji-kadam tanaji-kadam committed Oct 29, 2012
@@ -13,7 +13,7 @@
#import "UnitTest/Catch_Up_UnitTest.h"
@implementation AppDelegate
-
+@synthesize window;
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
@@ -574,7 +574,6 @@ - (void)handleCommandSendMessageForRequest:(Request *)request response:(id)respo
- (void)handleCommandReceiveMessageForRequest:(Request *)request response:(id)response isfail:(BOOL) isfail
{
- BOOL isReconnect=NO;
if (response == nil ) {
for (ChannelStatus* it in [_subscriptionset copy]) {
if ([it.channel isEqualToString:request.channel])
@@ -600,7 +599,6 @@ - (void)handleCommandReceiveMessageForRequest:(Request *)request response:(id)re
{
if (it.connected == NO ) {
it.connected =YES;
- isReconnect= YES;
[request.delegate reconnectToChannel:request.channel];
}
}
@@ -6,7 +6,7 @@
@implementation Request
-@synthesize connection,channel,command,delegate;
+@synthesize connection,channel,command,delegate,timetoken;
-(id)
scheme: (NSString*) scheme
@@ -156,7 +156,7 @@ @implementation Response
delegate = callback;
pubnub = pubnub_o;
channel = channel_o;
- message = message_o;
+ message = [[NSString alloc]initWithFormat:@"%@",message_o ];
return self;
}
@@ -180,7 +180,7 @@ @implementation Response
delegate = nil;
pubnub = pubnub_o;
channel = channel_o;
- message = message_o;
+ message = [[NSString alloc]initWithFormat:@"%@",message_o ];
return self;
}
-(void) callback:(NSURLConnection*) connection withResponce: (id) response {
@@ -574,7 +574,6 @@ - (void)handleCommandSendMessageForRequest:(Request *)request response:(id)respo
- (void)handleCommandReceiveMessageForRequest:(Request *)request response:(id)response isfail:(BOOL) isfail
{
- BOOL isReconnect=NO;
if (response == nil ) {
for (ChannelStatus* it in [_subscriptionset copy]) {
if ([it.channel isEqualToString:request.channel])
@@ -600,7 +599,6 @@ - (void)handleCommandReceiveMessageForRequest:(Request *)request response:(id)re
{
if (it.connected == NO ) {
it.connected =YES;
- isReconnect= YES;
[request.delegate reconnectToChannel:request.channel];
}
}
@@ -6,7 +6,7 @@
@implementation Request
-@synthesize connection,channel,command,delegate;
+@synthesize connection,channel,command,delegate,timetoken;
-(id)
scheme: (NSString*) scheme
@@ -156,7 +156,7 @@ @implementation Response
delegate = callback;
pubnub = pubnub_o;
channel = channel_o;
- message = message_o;
+ message = [[NSString alloc]initWithFormat:@"%@",message_o ];
return self;
}
@@ -180,7 +180,7 @@ @implementation Response
delegate = nil;
pubnub = pubnub_o;
channel = channel_o;
- message = message_o;
+ message = [[NSString alloc]initWithFormat:@"%@",message_o ];
return self;
}
-(void) callback:(NSURLConnection*) connection withResponce: (id) response {

0 comments on commit 9b005db

Please sign in to comment.