mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 13:38:45 +02:00
[keyboard] make stop_watching_for_terminal_input idempotent
This commit is contained in:
parent
e938daa05b
commit
30fa8e2d48
1 changed files with 3 additions and 0 deletions
|
|
@ -357,6 +357,9 @@ ply_keyboard_watch_for_terminal_input (ply_keyboard_t *keyboard)
|
|||
static void
|
||||
ply_keyboard_stop_watching_for_terminal_input (ply_keyboard_t *keyboard)
|
||||
{
|
||||
if (keyboard->provider.if_terminal->input_watch == NULL)
|
||||
return;
|
||||
|
||||
ply_event_loop_stop_watching_fd (keyboard->loop,
|
||||
keyboard->provider.if_terminal->input_watch);
|
||||
keyboard->provider.if_terminal->input_watch = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue