mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-28 14:20:07 +01:00
ei: always queue a disconnect event locally
In the case of a refused portal connection we get disconnected before we had a chance to send the CONNECT message. This still needs to queue a disconnect event and thus bubble back up to the caller. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1e8c184d8e
commit
5c017654e8
1 changed files with 1 additions and 1 deletions
|
|
@ -355,8 +355,8 @@ ei_disconnect(struct ei *ei)
|
|||
|
||||
if (state != EI_STATE_NEW) {
|
||||
ei->requests->disconnect(ei);
|
||||
queue_disconnect_event(ei);
|
||||
}
|
||||
queue_disconnect_event(ei);
|
||||
ei->state = EI_STATE_DISCONNECTED;
|
||||
if (ei->source)
|
||||
source_remove(ei->source);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue