Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
if not logging still start daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
majestrate committed Jan 21, 2016
1 parent 502d187 commit 5889c60
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/client/Daemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,29 @@ bool Daemon_Singleton::Start() {
} else {
StartLog(""); // write to stdout
}
try {
LogPrint("Starting NetDB...");
if (i2p::data::netdb.Start()) {
LogPrint("NetDB started");
} else {
LogPrint("NetDB failed to start");
return false;
}
LogPrint("Starting transports...");
i2p::transport::transports.Start();
LogPrint("Transports started");

LogPrint("Starting tunnels...");
i2p::tunnel::tunnels.Start();
LogPrint("Tunnels started");

LogPrint("Starting client...");
i2p::client::context.Start();
LogPrint("Client started");
} catch (std::runtime_error& e) {
LogPrint(eLogError, e.what());
}
try {
LogPrint("Starting NetDB...");
if (i2p::data::netdb.Start()) {
LogPrint("NetDB started");
} else {
LogPrint("NetDB failed to start");
return false;
}
LogPrint("Starting transports...");
i2p::transport::transports.Start();
LogPrint("Transports started");

LogPrint("Starting tunnels...");
i2p::tunnel::tunnels.Start();
LogPrint("Tunnels started");

LogPrint("Starting client...");
i2p::client::context.Start();
LogPrint("Client started");
} catch (std::runtime_error& e) {
LogPrint(eLogError, e.what());
return false;
}
return true;
}
Expand Down

0 comments on commit 5889c60

Please sign in to comment.