cl->start_time isnt initialized, so ecore_con_client_uptime_get() just doesnt work. This patch fixes it. Bug found by asdfuser.

This commit is contained in:
Guillaume Friloux 2013-05-24 14:06:08 +02:00 committed by Daniel Willmann
parent 359c17be56
commit 7b88439346
1 changed files with 1 additions and 0 deletions

View File

@ -1116,6 +1116,7 @@ ecore_con_event_client_add(Ecore_Con_Client *cl)
cl->event_count = eina_list_append(cl->event_count, e);
cl->host_server->event_count = eina_list_append(cl->host_server->event_count, e);
_ecore_con_cl_timer_update(cl);
cl->start_time = ecore_time_get();
e->client = cl;
if (cl->upgrade) ev = ECORE_CON_EVENT_CLIENT_UPGRADE;
ecore_event_add(ev, e,