diff options
author | thomascube <thomas@roundcube.net> | 2011-11-09 13:52:13 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2011-11-09 13:52:13 +0000 |
commit | ad71ba4fcd52a444452209460e19f63fefc59839 (patch) | |
tree | 9a62e057cb5202425dba29a97cf8416da1bd0480 /program/steps | |
parent | 51f7a5b2a09777d3a279757af620e42985ff9a86 (diff) |
Backporting r5403 to release branch
Diffstat (limited to 'program/steps')
-rw-r--r-- | program/steps/mail/compose.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/program/steps/mail/compose.inc b/program/steps/mail/compose.inc index 6961bf86a..c527ce15f 100644 --- a/program/steps/mail/compose.inc +++ b/program/steps/mail/compose.inc @@ -31,6 +31,14 @@ $MESSAGE = NULL; $COMPOSE_ID = get_input_value('_id', RCUBE_INPUT_GET); $_SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID]; +// give replicated session storage some time to synchronize +$retries = 0; +while ($COMPOSE_ID && !is_array($_SESSION['compose']) && $RCMAIL->db->is_replicated() && $retries++ < 5) { + usleep(500000); + $RCMAIL->session->reload(); + $_SESSION['compose'] = $_SESSION['compose_data_'.$COMPOSE_ID]; +} + // Nothing below is called during message composition, only at "new/forward/reply/draft" initialization or // if a compose-ID is given (i.e. when the compose step is opened in a new window/tab). if (!is_array($_SESSION['compose'])) |