# | Line 6 | Line 6 | |
---|---|---|
6 | ||
7 | #include "Daemon.hpp" | |
8 | ||
9 | + | void Daemon::wait() |
10 | + | { |
11 | + | if (!thread.IsEmpty()) |
12 | + | { |
13 | + | thread->Join(); |
14 | + | |
15 | + | thread.Clear(); |
16 | + | } |
17 | + | } |
18 | + | |
19 | void Daemon::start() | |
20 | { | |
21 | running = true; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |