mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Make any uncatched exception inside transaction trigger rollback
This commit is contained in:
parent
c5f2b389c3
commit
f56739fd9f
@ -620,7 +620,7 @@ outer_transaction(F, NRestarts, _Reason) ->
|
||||
[?MAX_TRANSACTION_RESTARTS, Reason,
|
||||
StackTrace, get(?STATE_KEY)]),
|
||||
maybe_restart_transaction(F, NRestarts, Reason, true);
|
||||
?EX_RULE(exit, Reason, _) ->
|
||||
?EX_RULE(_, Reason, _) ->
|
||||
maybe_restart_transaction(F, 0, Reason, true)
|
||||
end
|
||||
end.
|
||||
|
Loading…
Reference in New Issue
Block a user