From 6e5bcbd6dda5b00068bcd3cd04c58c216aba9e4e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 19 Oct 2015 08:07:28 +0000 Subject: [PATCH] * Notifications/all apps: do not block other requests while notifications are queried by committing the session --- notifications/inc/class.notifications_ajax.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/notifications/inc/class.notifications_ajax.inc.php b/notifications/inc/class.notifications_ajax.inc.php index d90b4e2ba6..0bbcbdfd94 100644 --- a/notifications/inc/class.notifications_ajax.inc.php +++ b/notifications/inc/class.notifications_ajax.inc.php @@ -109,7 +109,11 @@ class notifications_ajax { * * @return xajax response */ - public function get_notifications($browserNotify = false) { + public function get_notifications($browserNotify = false) + { + // close session now, to not block other user actions, as specially mail checks can be time consuming + $GLOBALS['egw']->session->commit_session(); + // call a hook for notifications on new mail //if ($GLOBALS['egw_info']['user']['apps']['mail']) $this->check_mailbox(); $GLOBALS['egw']->hooks->process('check_notify');