Added delay in windows closse of xmrigDaemon when an error occurs

This commit is contained in:
BenDroid 2017-12-04 21:47:47 +01:00
parent 36fc58e6f7
commit 379e25162e
2 changed files with 9 additions and 2 deletions

View file

@ -120,7 +120,7 @@ App::~App()
int App::start()
{
if (!m_options) {
return 0;
return EINVAL;
}
uv_signal_start(&m_signal, App::onSignal, SIGHUP);
@ -131,7 +131,7 @@ int App::start()
if (!CryptoNight::init(m_options->algo(), m_options->algoVariant())) {
LOG_ERR("\"%s\" hash self-test failed.", m_options->algoName());
return 1;
return EINVAL;
}
Mem::allocate(m_options);