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

SL-229/ Race condition fix #160

Merged
merged 5 commits into from
Apr 11, 2024
Merged

SL-229/ Race condition fix #160

merged 5 commits into from
Apr 11, 2024

Conversation

GytisZum
Copy link
Collaborator

@GytisZum GytisZum commented Apr 9, 2024

image

@GytisZum GytisZum self-assigned this Apr 9, 2024
@GytisZum GytisZum changed the title SL-229/ Race condition SL-229/ Race condition fix Apr 9, 2024
@@ -130,6 +140,8 @@ public function postProcess()
$updateOrderStatusAction = $this->module->getService(UpdateOrderStatusAction::class);
$updateOrderStatusAction->run((int) $orderId, (int) Configuration::get('SAFERPAY_PAYMENT_AUTHORIZED'));

$this->releaseLock();
Copy link
Contributor

Choose a reason for hiding this comment

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

release lock on finally only, additionally there should be an option for autorelease? so this isn't really needed.

@GytisZum GytisZum merged commit 09edb66 into release-1.2.2 Apr 11, 2024
@GytisZum GytisZum deleted the SL-229/race-condition branch April 11, 2024 09:06
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