libeis: only remove the source on disconnect, don't destroy it

Removed sources will be cleaned up at the end of dispatch.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2020-07-30 21:17:54 +10:00
parent 708ad85dd4
commit 3c7820baca

View file

@ -193,7 +193,7 @@ eis_client_disconnect(struct eis_client *client)
case EIS_CLIENT_STATE_HELLO:
client_send_disconnect(client);
client->state = EIS_CLIENT_STATE_DISCONNECTED;
source_unref(client->source);
source_remove(client->source);
break;
}
}