mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-30 22:48:08 +02:00
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:
parent
708ad85dd4
commit
3c7820baca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue