Skip to content

Commit

Permalink
Turn off reachability when CLOSING/CLOSED.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcard committed Aug 26, 2016
1 parent 40e0eee commit c88fd41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/ARTRealtime.m
Original file line number Diff line number Diff line change
Expand Up @@ -278,13 +278,15 @@ - (void)transitionSideEffects:(ARTConnectionStateChange *)stateChange {
break;
}
case ARTRealtimeClosing: {
[_reachability off];
[self unlessStateChangesBefore:[ARTDefault realtimeRequestTimeout] do:^{
[self transition:ARTRealtimeClosed];
}];
[self.transport sendClose];
break;
}
case ARTRealtimeClosed:
[_reachability off];
[self.transport close];
self.transport.delegate = nil;
_connection.key = nil;
Expand Down

0 comments on commit c88fd41

Please sign in to comment.