mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-27 18:32:53 +00:00
Daemon::run
This commit is contained in:
1 parent
ebd356c7bd
commit
4b0d587fe1
3 files changed
+15
-9
No files matched your search
@@ -1,4 +1,3 @@
|
||||
#include <thread>
|
||||
#include <stdlib.h>
|
||||
#include "Daemon.h"
|
||||
|
||||
@@ -6,12 +5,7 @@ int main( int argc, char* argv[] )
|
||||
{
|
||||
Daemon.init(argc, argv);
|
||||
if (Daemon.start())
|
||||
{
|
||||
while (Daemon.running)
|
||||
{
|
||||
std::this_thread::sleep_for (std::chrono::seconds(1));
|
||||
}
|
||||
}
|
||||
Daemon.run ();
|
||||
Daemon.stop();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user