From 8ed394eec89b8507461dfad77954c9dbdfedf774 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 8 Jun 2006 09:25:51 +0000 Subject: [PATCH] Now state management should work as expected. SVN revision: 23279 --- e_mod_main.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/e_mod_main.c b/e_mod_main.c index 2df2fa6..70962e1 100644 --- a/e_mod_main.c +++ b/e_mod_main.c @@ -501,6 +501,7 @@ _mail_cb_check(void *data) if (ci->use_ssl) type |= ECORE_CON_USE_SSL; inst->server = ecore_con_server_connect(type, ci->host, ci->port, inst); + inst->state = STATE_CONNECTED; } return 1; } @@ -612,7 +613,10 @@ _mail_parse_pop(void *data, void *data2) inst->server = NULL; return 0; } - + + if (inst->state == STATE_CONNECTED) + inst->state++; + switch (inst->state) { case STATE_SERVER_READY: @@ -708,6 +712,9 @@ _mail_parse_imap(void *data, void *data2) } } + if (inst->state == STATE_CONNECTED) + inst->state++; + switch (inst->state) { case STATE_SERVER_READY: