Traverse the imap client list correctly.

SVN revision: 23419
This commit is contained in:
Christopher Michael 2006-06-13 13:39:55 +00:00
parent 8360caeef9
commit 66b28af210
1 changed files with 4 additions and 13 deletions

9
imap.c
View File

@ -261,9 +261,6 @@ _mail_imap_server_data(void *data, int type, void *event)
if (is->clients)
{
is->current = is->clients->data;
if (is->current)
{
ic = is->current;
is->state = IMAP_STATE_SERVER_READY;
}
else
@ -272,12 +269,6 @@ _mail_imap_server_data(void *data, int type, void *event)
ic = NULL;
}
}
else
{
_mail_imap_server_logout(is);
ic = NULL;
}
}
if (!ic) break;
default:
break;