Skip to content

Commit

Permalink
fix SendAnalytics when error occurs (that make apps crash if cannot s…
Browse files Browse the repository at this point in the history
…end analytics to facebook)
  • Loading branch information
langtu committed Jul 19, 2013
1 parent 02bcbc6 commit 93f4c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Facebook.Client/FacebookSessionClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private void SendAnalytics(string FacebookAppId = null)
HttpHelper helper = new HttpHelper(instrumentationURL);

// setup the read completed event handler to dispose of the stream once the results are back
helper.OpenReadCompleted += (o, e) => { if (e.Error != null) using (var stream = e.Result) { }; };
helper.OpenReadCompleted += (o, e) => { if (e.Error == null) using (var stream = e.Result) { }; };
helper.OpenReadAsync();
}
}
Expand Down

0 comments on commit 93f4c64

Please sign in to comment.