Skip to content

Commit

Permalink
Fix the first load data bridge error
Browse files Browse the repository at this point in the history
Fix the first load data bridge error
  • Loading branch information
zyvincent committed Dec 6, 2017
1 parent dc065c6 commit f72e036
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sonic-iOS/Sonic/SonicServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -465,8 +465,12 @@ - (void)connectionDidCompleteWithoutError:(SonicConnection *)connection
break;

} while (true);
[self.delegate server:self didRecieveResponse:self.response];
[self.delegate server:self didReceiveData:self.responseData];

//First request need't to load again
if (![self isFirstLoadRequest]) {
[self.delegate server:self didRecieveResponse:self.response];
[self.delegate server:self didReceiveData:self.responseData];
}
}
[self.delegate serverDidCompleteWithoutError:self];
}
Expand Down

0 comments on commit f72e036

Please sign in to comment.