Cleanup socket on exit

This commit is contained in:
Patrick Nicolas
2024-08-18 14:24:49 +02:00
parent cb644eea07
commit 3d4690cb0c
+9
View File
@@ -343,6 +343,15 @@ int inner_main(int argc, char * argv[], bool use_systemd)
run_cleanup_functions();
}
}
#ifdef WIVRN_USE_SYSTEMD
try
{
std::filesystem::remove(socket_path());
}
catch (...)
{
}
#endif
return EXIT_SUCCESS;
}