Skip to content

Commit

Permalink
Merge branch 'hotfix-6.2.11' into support-6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymonPobiega committed Aug 29, 2018
2 parents ca63cc4 + 86650a6 commit a41c590
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ public bool DeduplicateMessage(string clientId, DateTime timeReceived)
session.Save(gatewayMessage);
tx.Commit();
}
catch (GenericADOException)
catch (ConstraintViolationException)
{
tx.Rollback();
return false;
}
catch (ADOException)
{
tx.Rollback();
throw;
}
}

return true;
Expand Down

0 comments on commit a41c590

Please sign in to comment.