summaryrefslogtreecommitdiffstats
path: root/cli-miner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cli-miner.cpp')
-rw-r--r--cli-miner.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/cli-miner.cpp b/cli-miner.cpp
index 6014d33..bc7c2d6 100644
--- a/cli-miner.cpp
+++ b/cli-miner.cpp
@@ -70,10 +70,13 @@ int main(int argc, char *argv[])
return 0;
}
- if (!httpd::inst()->start_daemon())
+ if(jconf::inst()->GetHttpdPort() != 0)
{
- win_exit();
- return 0;
+ if (!httpd::inst()->start_daemon())
+ {
+ win_exit();
+ return 0;
+ }
}
printer::inst()->print_str("-------------------------------------------------------------------\n");
OpenPOWER on IntegriCloud