diff --git a/server/main.cpp b/server/main.cpp index eef2b3f4..1903454b 100644 --- a/server/main.cpp +++ b/server/main.cpp @@ -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; }