Mercurial > dovecot > core-2.2
changeset 5419:b50399a48c5a HEAD
crashfix
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 26 Mar 2007 01:46:24 +0300 |
parents | e429b50d10a3 |
children | ca182382e346 |
files | src/imap/cmd-search.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap/cmd-search.c Mon Mar 26 01:32:39 2007 +0300 +++ b/src/imap/cmd-search.c Mon Mar 26 01:46:24 2007 +0300 @@ -170,6 +170,8 @@ if (cmd_search_more(cmd)) return TRUE; - ctx->to = timeout_add(0, cmd_search_more_callback, cmd); + /* we could have moved onto syncing by now */ + if (cmd->func == cmd_search_more) + ctx->to = timeout_add(0, cmd_search_more_callback, cmd); return FALSE; }