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

Propagator: Fix finished signal of directory being emited twice and c… #5579

Merged
merged 1 commit into from
Mar 6, 2017

Conversation

ogoffart
Copy link
Contributor

@ogoffart ogoffart commented Mar 6, 2017

…ausing crash

When there is a FatalError, we ended up emiting the finished signal for
the directory job several times, which would lead to crashes

Issue #5578

@mention-bot
Copy link

@ogoffart, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jturcotte, @ckamm and @dragotin to be potential reviewers.

Copy link
Member

@jturcotte jturcotte left a comment

Choose a reason for hiding this comment

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

Approved, with just a question I'm wondering.

if (_state != Finished) {
_state = Finished;
emit finished(_hasError == SyncFileItem::NoStatus ? SyncFileItem::Success : _hasError);
}
Copy link
Member

Choose a reason for hiding this comment

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

Would it make sense to also avoid the DB update in that case?

@guruz guruz mentioned this pull request Mar 6, 2017
…ausing crash

When there is a FatalError, we ended up emiting the finished signal for
the directory job several times, which would lead to crashes

Issue #5578
@ogoffart
Copy link
Contributor Author

ogoffart commented Mar 6, 2017

@jturcotte patch updated.

Copy link
Member

@jturcotte jturcotte left a comment

Choose a reason for hiding this comment

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

👍

@ogoffart ogoffart merged commit f862c62 into 2.3 Mar 6, 2017
@ogoffart ogoffart deleted the fix-abort-crash branch March 6, 2017 15:20
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.

3 participants