Revert "Fix a bug that caused stopping xdm to fail"
Revert "Fix a bug that caused stopping xdm to fail"

This reverts commit c077f71c32a0b260e28d835f473c0f3d5bd62627.

JohnoKing/leaninit,JohnoKing/leaninit