summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-17 12:37:32 +0200
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2024-07-17 12:40:01 +0200
commitecfb1a74b19b945af1c23417c49ac2383054afb0 (patch)
tree054ded52dbed516386f56d4857aa719518ae62c2 /lib
parentd4065fc381c2b63742fc60f9876f4f40efea57d1 (diff)
fix: Fix generating session id again if duplicated
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Service/SessionService.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/SessionService.php b/lib/Service/SessionService.php
index b2a6806d8..bb341f144 100644
--- a/lib/Service/SessionService.php
+++ b/lib/Service/SessionService.php
@@ -100,7 +100,7 @@ class SessionService {
break;
} catch (Exception $e) {
// 255 chars are not unique? Try again...
- if ($e->getReason() === Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
+ if ($e->getReason() !== Exception::REASON_UNIQUE_CONSTRAINT_VIOLATION) {
throw $e;
}
}