diff options
Diffstat (limited to 'src/extantz')
-rw-r--r-- | src/extantz/extantz.c | 3 |
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); |