--- Spectre2/Daemon.cpp 2004/12/31 06:08:35 406 +++ Spectre2/Daemon.cpp 2004/12/31 06:32:13 407 @@ -6,6 +6,16 @@ #include "Daemon.hpp" +void Daemon::wait() +{ + if (!thread.IsEmpty()) + { + thread->Join(); + + thread.Clear(); + } +} + void Daemon::start() { running = true;