Respond to CR.

pull/1/head
Matthew Chen 7 years ago
parent ebd24feff6
commit d4fe671261

@ -395,7 +395,7 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
// the socket failed immediately for some reason), so we update the state // the socket failed immediately for some reason), so we update the state
// _before_ calling it, not after. // _before_ calling it, not after.
_state = state; _state = state;
_canMakeRequests = state == SocketManagerStateOpen; self.canMakeRequests = state == SocketManagerStateOpen;
[socket open]; [socket open];
[self failAllPendingSocketMessagesIfNecessary]; [self failAllPendingSocketMessagesIfNecessary];
return; return;
@ -403,7 +403,7 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
} }
_state = state; _state = state;
_canMakeRequests = state == SocketManagerStateOpen; self.canMakeRequests = state == SocketManagerStateOpen;
[self failAllPendingSocketMessagesIfNecessary]; [self failAllPendingSocketMessagesIfNecessary];
[self notifyStatusChange]; [self notifyStatusChange];

Loading…
Cancel
Save