Skip to content

Conversation

@eliaslecomte
Copy link
Contributor

@eliaslecomte eliaslecomte commented Jan 11, 2022

We were seeing an issue in Sentry due to the use of AsyncTask in the send packet function:

screenshot-sentry-crash

It's not occurring a lot, but enough to fix :-). The bug is hard to reproduce, we assume it's due to the Activity being paused, or the app relaunched. The AsyncTask is getting executed but the socket is no more.
Given that https://developer.android.com/reference/android/os/AsyncTask is deprecated, I rewrote it.

We are currently testing these change in production.

@eliaslecomte
Copy link
Contributor Author

This fix should solve #196.

@eliaslecomte eliaslecomte marked this pull request as ready for review February 14, 2022 08:11
@Rapsssito Rapsssito changed the title Remove AsyncTask in the send function (it's deprecated) fix: Remove AsyncTask in the send function (it's deprecated) Feb 22, 2022
@Rapsssito
Copy link
Collaborator

@eliaslecomte, thanks for the PR! LGTM!

@Rapsssito Rapsssito merged commit 179a948 into tradle:master Feb 22, 2022
github-actions bot pushed a commit that referenced this pull request Feb 22, 2022
## [4.1.4](v4.1.3...v4.1.4) (2022-02-22)

### Bug Fixes

* Remove AsyncTask in the send function (it's deprecated) ([#197](#197)) ([179a948](179a948))
@github-actions
Copy link

🎉 This PR is included in version 4.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants