Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : mail

Dir     : e_modules/mail


Modified Files:
        e_mod_main.c 


Log Message:
Now state management should work as expected.

===================================================================
RCS file: /cvs/e/e_modules/mail/e_mod_main.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- e_mod_main.c        8 Jun 2006 09:14:06 -0000       1.7
+++ e_mod_main.c        8 Jun 2006 09:25:51 -0000       1.8
@@ -501,6 +501,7 @@
        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 @@
        inst->server = NULL;
        return 0;
      }
-       
+
+   if (inst->state == STATE_CONNECTED)
+     inst->state++;
+   
    switch (inst->state) 
      {
       case STATE_SERVER_READY:
@@ -708,6 +712,9 @@
          }     
      }
 
+   if (inst->state == STATE_CONNECTED)
+     inst->state++;
+   
    switch (inst->state) 
      {
       case STATE_SERVER_READY:




_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to