Permalink
Browse files

_state should be set inside connection_queue_ dispatch_queue

  • Loading branch information...
1 parent a60331d commit a60c3aacec8caaca2418b9631118bf4668496a92 @georgekola georgekola committed Feb 25, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ispdy.m
View
2 src/ispdy.m
@@ -991,9 +991,9 @@ - (void) stream: (NSStream*) stream handleEvent: (NSStreamEvent) event {
if (keep_alive_ != -1)
[self _setKeepAlive: keep_alive_];
+ _state = kISpdyStateConnected;
// Notify delegate
[self _delegateDispatch: ^{
- _state = kISpdyStateConnected;
[self.delegate handleConnect: self];
}];
} else if (event == NSStreamEventHasBytesAvailable ||

0 comments on commit a60c3aa

Please sign in to comment.