Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new transaction on commitAllowingStateLoss #534

Merged
merged 1 commit into from
Mar 6, 2018

Conversation

patedit
Copy link
Contributor

@patedit patedit commented Feb 22, 2018

Calling commitAllowingStateLoss on the same transaction will through an exception since commit was called before. #516

@patedit patedit merged commit 83efa29 into master Mar 6, 2018
@@ -241,7 +243,7 @@ public void onPause() {
}

private void cleanUp() {
if (!mCleanedUp) {
if (!mCleanedUp.get()) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if(!mCleanedUp.getAndSet(true))

will be more secure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants