Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SignalR.Client/SRConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ typedef void (^SRConnectionErrorBlock)(NSError *);
typedef void (^SRConnectionClosedBlock)();
typedef void (^SRConnectionReconnectingBlock)();
typedef void (^SRConnectionReconnectedBlock)();
typedef void (^SRConnectionStateChangedBlock)(connectionState);
typedef void (^SRConnectionStateChangedBlock)(connectionState, connectionState);
typedef void (^SRConnectionConnectionSlowBlock)();

@interface SRConnection : NSObject <SRConnectionInterface>
Expand Down
2 changes: 1 addition & 1 deletion SignalR.Client/SRConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ - (BOOL)changeState:(connectionState)oldState toState:(connectionState)newState
SRLogConnectionDebug(@"connection state did change from %u to %u", oldState, newState);

if (self.stateChanged){
self.stateChanged(self.state);
self.stateChanged(oldState, newState);
}

if (self.delegate && [self.delegate respondsToSelector:@selector(SRConnection:didChangeState:newState:)]) {
Expand Down