Remove the socket on daemon shutdown

This commit is contained in:
Ilya Zlobintsev 2020-11-23 20:50:27 +02:00
parent bac483c619
commit f0b081174f

View File

@ -307,6 +307,7 @@ impl Daemon {
controller.commit_gpu_power_states();
controller.set_power_profile(PowerProfile::Auto);
}
fs::remove_file(SOCK_PATH).expect("Failed to remove socket");
}
std::process::exit(0);
}