Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : forecasts
Dir : e_modules/forecasts
Modified Files:
e_mod_main.c
Log Message:
Apply ecore_con freeze fixes (from weather module) to the forecasts module.
Needs testing.
===================================================================
RCS file: /cvs/e/e_modules/forecasts/e_mod_main.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- e_mod_main.c 6 Jan 2008 23:03:09 -0000 1.17
+++ e_mod_main.c 16 Jun 2008 22:59:24 -0000 1.18
@@ -544,13 +544,15 @@
{
Instance *inst;
- inst = data;
+ /* check that data is valid */
+ if (!(inst = data)) return 0;
+
+ /* if we have a previous server, delete it */
+ if (inst->server) ecore_con_server_del(inst->server);
+
+ /* server deleted, set variable to NULL */
+ inst->server = NULL;
- if (inst->server)
- {
- ecore_con_server_del(inst->server);
- inst->server = NULL;
- }
if (proxy.port != 0)
inst->server =
ecore_con_server_connect(ECORE_CON_REMOTE_SYSTEM,
@@ -559,6 +561,7 @@
inst->server =
ecore_con_server_connect(ECORE_CON_REMOTE_SYSTEM, inst->ci->host, 80,
inst);
+ if (!inst->server) return 0;
return 1;
}
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs