aboutsummaryrefslogtreecommitdiff
path: root/src/bitcoind.cpp
diff options
context:
space:
mode:
authorHuang Le <4tarhl@gmail.com>2014-05-20 01:22:33 +0800
committerHuang Le <4tarhl@gmail.com>2014-05-20 01:22:33 +0800
commit0b78ba8ad69d55817f2b62c631a71b5ac32549f1 (patch)
tree286d2fb8c2885c1c8f501d9f99d62ba63be8ac27 /src/bitcoind.cpp
parentaed38cbcb54772a9b05aff0759288f4fefaec70b (diff)
Remove fDaemon flag checking on return from main(), which is useless and looks really strange.
Diffstat (limited to 'src/bitcoind.cpp')
-rw-r--r--src/bitcoind.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp
index 78c8b2ba0e..9b535c2e6b 100644
--- a/src/bitcoind.cpp
+++ b/src/bitcoind.cpp
@@ -174,15 +174,8 @@ int main(int argc, char* argv[])
{
SetupEnvironment();
- bool fRet = false;
-
// Connect bitcoind signal handlers
noui_connect();
- fRet = AppInit(argc, argv);
-
- if (fRet && fDaemon)
- return 0;
-
- return (fRet ? 0 : 1);
+ return (AppInit(argc, argv) ? 0 : 1);
}