Very slow shutdown on Wayland "sddm.service: State 'stop-sigterm' timed out. Killing."

When shutting down or rebooting KDE Plasma on Wayland, it takes a long time.

I’ve found this in the log, which makes me believe there’s something wrong with SDDM:

dez 01 21:37:53 desktop-nfp systemd[1]: Removed slice User Slice of UID 1000.
dez 01 21:37:53 desktop-nfp systemd[1]: user-1000.slice: Consumed 43min 23.540s CPU time.
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: State ‘stop-sigterm’ timed out. Killing.
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: Killing process 711 (sddm) with signal SIGKILL.
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: Killing process 14249 (Xorg) with signal SIGKILL.
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: Killing process 742 (QDBusConnection) with signal SIGKILL.
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: Main process exited, code=killed, status=9/KILL
dez 01 21:39:22 desktop-nfp systemd[1]: sddm.service: Failed with result ‘timeout’.
dez 01 21:39:22 desktop-nfp systemd[1]: Stopped Simple Desktop Display Manager.

Notice the jump from 21:37:53 to 21:39:22

This only happens on Wayland and not on X.

It’s known bug, will be fixed in next release. If you don’t want to receive these messages, you can logout first, then shutdown.

How do you know it’s fixed?
The bug listed in that thread is still not marked as resolved.

Because this merge in master branch most likely solve this issue. The fix probably will go to 5.24.

Glad this is being addressed, as it’s really annoying. Find it a bit odd though that I’ve got EndeavourOS on the same machine and it doesn’t have the same issue.

Oh thanks.
According to the discussion, this will be backported to 5.23 too. Nice!