Skip to content

Commit

Permalink
Re-start the session.
Browse files Browse the repository at this point in the history
We closed the session before listing events to allow parallel requests, but we only restarted it if there was no error condition. Since notifications write the session, we must restart the session in the error case too though.
  • Loading branch information
yunosh committed Apr 13, 2016
1 parent 20ed7a2 commit 568499f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kronolith/lib/Ajax/Application/Handler.php
Expand Up @@ -122,6 +122,7 @@ public function listEvents()
$result->events = $events;
}
} catch (Exception $e) {
$session->start();
$GLOBALS['notification']->push($e, 'horde.error');
}
return $result;
Expand Down

0 comments on commit 568499f

Please sign in to comment.