ensure we unset a pulse connection's server when it gets deleted

SVN revision: 76651
This commit is contained in:
Mike Blumenkrantz 2012-09-14 09:55:39 +00:00
parent 1a7737d5a1
commit d43a195c7d
1 changed files with 1 additions and 0 deletions

View File

@ -355,6 +355,7 @@ con(Pulse *conn, int type __UNUSED__, Ecore_Con_Event_Server_Add *ev)
{
conn->state = PA_STATE_INIT;
ecore_con_server_del(ev->server);
conn->svr = NULL;
ecore_event_add(PULSE_EVENT_DISCONNECTED, conn, pulse_fake_free, NULL);
return ECORE_CALLBACK_RENEW;
}