aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-05-14 09:02:51 +1000
committerDavid Walter Seikel2014-05-14 09:02:51 +1000
commit8dc65d54d2c422690852b8bc7d0b7d35ca4582bc (patch)
tree7cd389f3139cb129f45003e88a172c6804d031ec /src/extantz
parentPurkle gets an append command, and use it from extantz to show llSay() and fr... (diff)
downloadSledjHamr-8dc65d54d2c422690852b8bc7d0b7d35ca4582bc.zip
SledjHamr-8dc65d54d2c422690852b8bc7d0b7d35ca4582bc.tar.gz
SledjHamr-8dc65d54d2c422690852b8bc7d0b7d35ca4582bc.tar.bz2
SledjHamr-8dc65d54d2c422690852b8bc7d0b7d35ca4582bc.tar.xz
Starting up and closing down the servers gets some love. Needs more love.
Diffstat (limited to 'src/extantz')
-rw-r--r--src/extantz/extantz.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index 7fce3a3..848bc9a 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -76,8 +76,8 @@ static Eina_Bool _del(void *data, int type, Ecore_Con_Event_Server_Del *ev)
76 76
77 if (ev->server) 77 if (ev->server)
78 { 78 {
79 ecore_con_server_del(ourGlobals->server);
79 ourGlobals->server = NULL; 80 ourGlobals->server = NULL;
80 ecore_con_server_del(ev->server);
81 } 81 }
82 82
83 return ECORE_CALLBACK_RENEW; 83 return ECORE_CALLBACK_RENEW;
@@ -633,6 +633,7 @@ EAPI_MAIN int elm_main(int argc, char **argv)
633 // Try to connect to the love server we started before. 633 // Try to connect to the love server we started before.
634 ourGlobals.address = "127.0.0.1"; 634 ourGlobals.address = "127.0.0.1";
635 ourGlobals.port = 8211; 635 ourGlobals.port = 8211;
636 sleep(2);
636 if ((ourGlobals.server = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ourGlobals.address, ourGlobals.port + 1, &ourGlobals))) 637 if ((ourGlobals.server = ecore_con_server_connect(ECORE_CON_REMOTE_TCP, ourGlobals.address, ourGlobals.port + 1, &ourGlobals)))
637 { 638 {
638 ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb) _add, &ourGlobals); 639 ecore_event_handler_add(ECORE_CON_EVENT_SERVER_ADD, (Ecore_Event_Handler_Cb) _add, &ourGlobals);