diff --git a/src/pam/main.cc b/src/pam/main.cc index f4f77cc..91822c9 100644 --- a/src/pam/main.cc +++ b/src/pam/main.cc @@ -356,7 +356,7 @@ auto identify(pam_handle_t *pamh, int flags, int argc, const char **argv, // UNSAFE: We cancel the thread using pthread, pam_get_authtok seems to be // a cancellation point - if (workaround == Workaround::Native && pass_task.is_active()) { + if (workaround == Workaround::Native) { pass_task.stop(true); } else if (workaround == Workaround::Input) { // We check if we have the right permissions on /dev/uinput diff --git a/src/pam/optional_task.hh b/src/pam/optional_task.hh index f1fc9db..29214bf 100644 --- a/src/pam/optional_task.hh +++ b/src/pam/optional_task.hh @@ -53,10 +53,6 @@ template auto optional_task::get() -> T { return _future.get(); } -template auto optional_task::is_active() -> bool { - return _is_active; -} - // Stop the thread: // - if `force` is `false`, by joining the thread. // - if `force` is `true`, by cancelling the thread using `pthread_cancel`.