summaryrefslogtreecommitdiffstats
path: root/lib/private/Session/Internal.php
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2017-04-12 21:25:22 +0300
committerJoas Schilling <coding@schilljs.com>2017-04-25 16:28:52 +0200
commit131df248ef29f2dd1d78a1dd43b1fe09a65b3a48 (patch)
tree79d2b8f766f597add4ac3d07e289bdcf99a4ff3a /lib/private/Session/Internal.php
parent8ef25a7628d44465d4777686227407f9a2067700 (diff)
downloadnextcloud-server-131df248ef29f2dd1d78a1dd43b1fe09a65b3a48.tar.gz
nextcloud-server-131df248ef29f2dd1d78a1dd43b1fe09a65b3a48.zip
Catch session already closed exception in destructor
Diffstat (limited to 'lib/private/Session/Internal.php')
-rw-r--r--lib/private/Session/Internal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Session/Internal.php b/lib/private/Session/Internal.php
index 22878154c05..72af5727a54 100644
--- a/lib/private/Session/Internal.php
+++ b/lib/private/Session/Internal.php
@@ -151,7 +151,7 @@ class Internal extends Session {
*/
private function validateSession() {
if ($this->sessionClosed) {
- throw new \Exception('Session has been closed - no further changes to the session are allowed');
+ throw new SessionNotAvailableException('Session has been closed - no further changes to the session are allowed');
}
}
}