mirror of
https://github.com/WiVRn/WiVRn.git
synced 2026-12-01 22:32:56 -08:00
Cleanup socket on exit
This commit is contained in:
1 parent
cb644eea07
commit
3d4690cb0c
1 file changed
+9
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user